LogCommend.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. MWF.xApplication.cms.FormDesigner.Module = MWF.xApplication.cms.FormDesigner.Module || {};
  2. MWF.xDesktop.requireApp("process.FormDesigner", "Module.Log", null, false);
  3. MWF.xApplication.cms.FormDesigner.Module.LogCommend = MWF.CMSFCLogCommend = new Class({
  4. Extends: MWF.FCLog,
  5. options: {
  6. "style": "default",
  7. "propertyPath": "../x_component_cms_FormDesigner/Module/LogCommend/logCommend.html"
  8. },
  9. initialize: function(form, options){
  10. this.setOptions(options);
  11. this.path = "../x_component_process_FormDesigner/Module/Log/";
  12. this.cssPath = "../x_component_process_FormDesigner/Module/Log/"+this.options.style+"/css.wcss";
  13. this._loadCss();
  14. this.moduleType = "element";
  15. this.moduleName = "logCommend";
  16. this.form = form;
  17. this.container = null;
  18. this.containerNode = null;
  19. },
  20. _createMoveNode: function(){
  21. this.moveNode = new Element("div", {
  22. "MWFType": "logCommend",
  23. "id": this.json.id,
  24. "styles": this.css.moduleNodeMove,
  25. "events": {
  26. "selectstart": function(){
  27. return false;
  28. }
  29. }
  30. }).inject(this.form.container);
  31. },
  32. _createIcon: function(){
  33. this.iconNode = new Element("div", {
  34. "styles": this.css.iconNode
  35. }).inject(this.node);
  36. new Element("div", {
  37. "styles": this.css.iconNodeIcon
  38. }).inject(this.iconNode);
  39. new Element("div", {
  40. "styles": this.css.iconNodeText,
  41. "text": "CommendLOG"
  42. }).inject(this.iconNode);
  43. },
  44. });