Source.js 994 B

12345678910111213141516171819202122232425262728293031323334
  1. MWF.xApplication.portal.PageDesigner.Module.Source = MWF.PCSource = new Class({
  2. Extends: MWF.FCDiv,
  3. Implements: [Options, Events],
  4. options: {
  5. "style": "default",
  6. "propertyPath": "../x_component_portal_PageDesigner/Module/Source/source.html"
  7. },
  8. initialize: function(form, options){
  9. this.setOptions(options);
  10. this.path = "../x_component_portal_PageDesigner/Module/Source/";
  11. this.cssPath = "../x_component_portal_PageDesigner/Module/Source/"+this.options.style+"/css.wcss";
  12. this._loadCss();
  13. this.moduleType = "container";
  14. this.moduleName = "Source";
  15. this.Node = null;
  16. this.form = form;
  17. },
  18. _createMoveNode: function(){
  19. this.moveNode = new Element("div", {
  20. "MWFType": "source",
  21. "id": this.json.id,
  22. "styles": this.css.moduleNodeMove,
  23. "events": {
  24. "selectstart": function(){
  25. return false;
  26. }
  27. }
  28. }).inject(this.form.container);
  29. }
  30. });