Opinion.js 1.0 KB

1234567891011121314151617181920212223242526
  1. MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
  2. MWF.xDesktop.requireApp("process.FormDesigner", "Module.Textarea", null, false);
  3. MWF.xApplication.process.FormDesigner.Module.Opinion = MWF.FCOpinion = new Class({
  4. Extends: MWF.FCTextarea,
  5. Implements: [Options, Events],
  6. options: {
  7. "style": "default",
  8. "type": "opinion",
  9. "path": "../x_component_process_FormDesigner/Module/Opinion/",
  10. "propertyPath": "../x_component_process_FormDesigner/Module/Opinion/opinion.html"
  11. },
  12. _getDroppableNodes: function(){
  13. var nodes = [this.form.node].concat(this.form.moduleElementNodeList, this.form.moduleContainerNodeList, this.form.moduleComponentNodeList);
  14. this.form.moduleList.each( function(module){
  15. //意见不能往数据模板里拖
  16. if( module.moduleName === "datatemplate" ){
  17. var subDoms = this.form.getModuleNodes(module.node);
  18. nodes.erase( module.node );
  19. subDoms.each(function (dom) {
  20. nodes.erase( dom );
  21. })
  22. }
  23. }.bind(this));
  24. return nodes;
  25. }
  26. });