123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666 |
- MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
- MWF.xDesktop.requireApp("process.FormDesigner", "Module.$Container", null, false);
- MWF.xDesktop.requireApp("process.FormDesigner", "Module.$Component", null, false);
- MWF.xDesktop.requireApp("process.FormDesigner", "Module.Datatable$Data", null, false);
- MWF.xDesktop.requireApp("process.FormDesigner", "Module.Datatable$Title", null, false);
- MWF.xDesktop.requireApp("process.FormDesigner", "Module.Table$Td", null, false);
- MWF.xApplication.process.FormDesigner.Module.Datatable = MWF.FCDatatable = new Class({
- Extends: MWF.FC$Component,
- Implements: [Options, Events],
- options: {
- "style": "default",
- "propertyPath": "../x_component_process_FormDesigner/Module/Datatable/datatable.html"
- },
- initialize: function(form, options){
- this.setOptions(options);
- this.path = "../x_component_process_FormDesigner/Module/Datatable/";
- this.cssPath = "../x_component_process_FormDesigner/Module/Datatable/"+this.options.style+"/css.wcss";
- this._loadCss();
- this.moduleType = "component";
- this.moduleName = "datatable";
- this.form = form;
- this.container = null;
- this.containerNode = null;
- this.containers = [];
- this.elements = [];
- this.selectedMultiTds = [];
- debugger;
- },
- clearTemplateStyles: function(styles){
- debugger;
- if (styles){
- if (styles.styles) this.removeStyles(styles.styles, "styles");
- if (styles.tableStyles) this.removeStyles(styles.tableStyles, "tableStyles");
- if (styles.titleStyles) this.removeStyles(styles.titleStyles, "titleStyles");
- if (styles.contentStyles) this.removeStyles(styles.contentStyles, "contentStyles");
- if (styles.actionStyles) this.removeStyles(styles.actionStyles, "actionStyles");
- if (styles.editStyles) this.removeStyles(styles.editStyles, "editStyles");
- if (styles.amountStyles) this.removeStyles(styles.amountStyles, "amountStyles");
- if (styles.sectionAmountStyles) this.removeStyles(styles.sectionAmountStyles, "sectionAmountStyles");
- if (styles.itemTitleStyles) this.removeStyles(styles.itemTitleStyles, "itemTitleStyles");
- if (styles.properties) this.removeStyles(styles.properties, "properties");
- if (styles.importActionStyles) this.removeStyles(styles.importActionStyles, "importActionStyles");
- if (styles.exportActionStyles) this.removeStyles(styles.exportActionStyles, "exportActionStyles");
- if (styles.sectionKeyStyles) this.removeStyles(styles.sectionKeyStyles, "sectionKeyStyles");
- if (styles.sectionKeyStyles) this.removeStyles(styles.sectionKeyStyles, "sectionByStyles");
- }
- },
- setTemplateStyles: function(styles){
- debugger;
- if (styles.styles) this.copyStyles(styles.styles, "styles");
- if (styles.tableStyles) this.copyStyles(styles.tableStyles, "tableStyles");
- if (styles.titleStyles) this.copyStyles(styles.titleStyles, "titleStyles");
- if (styles.contentStyles) this.copyStyles(styles.contentStyles, "contentStyles");
- if (styles.actionStyles) this.copyStyles(styles.actionStyles, "actionStyles");
- if (styles.editStyles) this.copyStyles(styles.editStyles, "editStyles");
- if (styles.amountStyles) this.copyStyles(styles.amountStyles, "amountStyles");
- if (styles.sectionAmountStyles) this.copyStyles(styles.sectionAmountStyles, "sectionAmountStyles");
- if (styles.itemTitleStyles) this.copyStyles(styles.itemTitleStyles, "itemTitleStyles");
- if (styles.properties) this.copyStyles(styles.properties, "properties");
- if (styles.importActionStyles) this.copyStyles(styles.importActionStyles, "importActionStyles");
- if (styles.exportActionStyles) this.copyStyles(styles.exportActionStyles, "exportActionStyles");
- if (styles.sectionKeyStyles) this.copyStyles(styles.sectionKeyStyles, "sectionKeyStyles");
- if (styles.sectionKeyStyles) this.copyStyles(styles.sectionKeyStyles, "sectionByStyles");
- },
- setImpExpTableStyles: function(){
- //设置导入导出表格样式
- if(this.form.templateStyles && this.form.templateStyles.table){
- this.json.impExpTableStyles = Object.merge(this.json.impExpTableStyles||{}, this.form.templateStyles.table.styles||{});
- this.json.impExpTableTitleStyles = Object.merge(this.json.impExpTableTitleStyles||{}, this.form.templateStyles.table.titleStyles||{});
- this.json.impExpTableContentStyles = Object.merge(this.json.impExpTableContentStyles||{}, this.form.templateStyles.table.contentStyles||{});
- this.json.impExpTableProperties = Object.merge(this.json.impExpTableProperties||{}, this.form.templateStyles.table.properties||{});
- }
- },
- _createMoveNode: function(){
- var tableHTML = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" width=\"100%\" align=\"center\">";
- tableHTML += "<tr><th></th><th></th><th></th></tr>";
- tableHTML += "<tr><td></td><td></td><td></td></tr>";
- tableHTML += "</table>";
- this.moveNode = new Element("div", {
- "html": tableHTML
- }).inject(this.form.container);
- // this.moveNode = divNode.getFirst();
- // this.moveNode.inject(divNode, "after");
- // divNode.destroy();
- this.moveNode.setStyles(this.css.moduleNodeMove);
- this._setTableStyle();
- },
- _setTableStyle: function(){
- var tds = this.moveNode.getElements("td");
- tds.setStyles({
- "border": "1px dashed #999",
- "height": "20px"
- });
- var tds = this.moveNode.getElements("th");
- tds.setStyles({
- "background": "#C3CEEA",
- "border": "1px dashed #999",
- "height": "20px"
- });
- },
- _getContainers: function(){
- var tds = this.node.getElements("td");
- this.form.getTemplateData("Datatable$Data", function(data){
- tds.each(function(td){
- var json = this.form.getDomjson(td);
- var tdContainer = null;
- if (!json){
- var moduleData = Object.clone(data);
- tdContainer = new MWF.FCDatatable$Data(this.form);
- tdContainer.load(moduleData, td, this);
- }else{
- var moduleData = Object.clone(data);
- Object.merge(moduleData, json);
- Object.merge(json, moduleData);
- tdContainer = new MWF.FCDatatable$Data(this.form);
- tdContainer.load(json, td, this);
- }
- this.containers.push(tdContainer);
- }.bind(this));
- }.bind(this), false);
- },
- _getElements: function(){
- //this.elements.push(this);
- var ths = this.node.getElements("th");
- this.form.getTemplateData("Datatable$Title", function(data){
- ths.each(function(th){
- var json = this.form.getDomjson(th);
- var thElement = null;
- if (!json){
- var moduleData = Object.clone(data);
- thElement = new MWF.FCDatatable$Title(this.form);
- thElement.load(moduleData, th, this);
- }else{
- var moduleData = Object.clone(data);
- Object.merge(moduleData, json);
- Object.merge(json, moduleData);
- thElement = new MWF.FCDatatable$Title(this.form);
- thElement.load(json, th, this);
- }
- this.elements.push(thElement);
- }.bind(this));
- }.bind(this), false);
- },
- // _getDroppableNodes: function(){
- // var nodes = [this.form.node].concat(this.form.moduleElementNodeList, this.form.moduleContainerNodeList, this.form.moduleComponentNodeList);
- // this.form.moduleList.each( function(module){
- // //数据网格不能往数据模板里拖
- // if( module.moduleName === "datatemplate" ){
- // var subDoms = this.form.getModuleNodes(module.node);
- // nodes.erase( module.node );
- // subDoms.each(function (dom) {
- // nodes.erase( dom );
- // })
- // }
- // }.bind(this));
- // return nodes;
- // },
- _createNode: function(callback){
- var module = this;
- var url = this.path+"datatableCreate.html";
- MWF.require("MWF.widget.Dialog", function(){
- var size = $(document.body).getSize();
- var x = size.x/2-180;
- var y = size.y/2-130;
- var dlg = new MWF.DL({
- "title": "Create Datatable",
- "style": "property",
- "top": y,
- "left": x-40,
- "fromTop":size.y/2-65,
- "fromLeft": size.x/2,
- "width": 360,
- "height": 260,
- "url": url,
- "lp": MWF.xApplication.process.FormDesigner.LP.propertyTemplate,
- "buttonList": [
- {
- "text": MWF.APPFD.LP.button.ok,
- "action": function(){
- module._createTableNode();
- callback();
- this.close();
- }
- }
- ]
- });
- dlg.show();
- }.bind(this));
- },
- _createTableNode: function(){
- var cols = $("MWFNewTableColumn").get("value");
- var width = $("MWFNewTableWidth").get("value");
- var widthUnitNode = $("MWFNewTableWidthUnit");
- var widthUnit = widthUnitNode.options[widthUnitNode.selectedIndex].value;
- var border = $("MWFNewTableBorder").get("value");
- var cellpadding = $("MWFNewTableCellpadding").get("value");
- var cellspacing = $("MWFNewTableCellspacing").get("value");
- var w = "";
- if (widthUnit=="percent"){
- w = width+"%";
- }else{
- w = width+"px";
- }
- this.json.properties.width = w;
- this.json.properties.border = border;
- this.json.properties.cellpadding = cellpadding;
- this.json.properties.cellspacing = cellspacing;
- var tableHTML = "<table border=\""+border+"\" cellpadding=\""+cellpadding+"\" cellspacing=\""+cellspacing+"\" width=\""+w+"\" align=\"center\">";
- tableHTML += "<tr>";
- for (var j=0; j<cols.toInt(); j++){
- tableHTML += "<th></th>";
- }
- tableHTML += "</tr>";
- tableHTML += "<tr>";
- for (var j=0; j<cols.toInt(); j++){
- tableHTML += "<td></td>";
- }
- tableHTML += "</tr></table>";
- this.node = new Element("div", {
- "id": this.json.id,
- "MWFType": "datatable",
- "html": tableHTML,
- "styles": this.css.moduleNode,
- "events": {
- "selectstart": function(e){
- e.preventDefault();
- }
- }
- }).inject(this.form.node);
- this.table = this.node.getElement("table");
- },
- _dragComplete: function(){
- if (!this.node){
- this._createNode(function(){
- this._dragMoveComplete();
- }.bind(this));
- }else{
- this._dragMoveComplete();
- }
- },
- _dragMoveComplete: function(){
- this._resetTreeNode();
- this.node.inject(this.copyNode, "before");
- this._initModule();
- var thisDisplay = this.node.retrieve("thisDisplay");
- if (thisDisplay){
- this.node.setStyle("display", thisDisplay);
- }
- if (this.copyNode) this.copyNode.destroy();
- if (this.moveNode) this.moveNode.destroy();
- this.moveNode = null;
- this.copyNode = null;
- this.nextModule = null;
- this.form.moveModule = null;
- this.form.json.moduleList[this.json.id] = this.json;
- this.selected();
- if( this.operation && !this.historyAddDelay ){
- this.addHistoryLog( this.operation, null, this.fromLog );
- }
- if( !this.historyAddDelay ){
- this.operation = null;
- this.fromLog = null;
- }
- },
- _initModule: function(){
- if (!this.initialized){
- if (this.json.initialized!=="yes")this.setStyleTemplate();
- this.table = this.node.getElement("table");
- this._getElements();
- this._getContainers();
- this.setPropertiesOrStyles("styles");
- this.setPropertiesOrStyles("tableStyles");
- this.setPropertiesOrStyles("properties");
- if( !this.json.impExpTableStyles ){
- this.setImpExpTableStyles()
- }
- this._setNodeProperty();
- if (!this.form.isSubform) this._createIconAction();
- // this.checkSequenceShow();
- this._setNodeEvent();
- this.setDatatableStyles();
- this._setEditStyle_custom("impexpType");
- this.initialized = true;
- this.json.initialized = "yes";
- }
- },
- setPropertiesOrStyles: function(name){
- if (name=="styles"){
- try{
- this.setCustomStyles();
- }catch(e){}
- var border = this.node.getStyle("border");
- this.node.clearStyles();
- this.node.setStyles(this.css.moduleNode);
- this.node.setStyle("border", border);
- Object.each(this.json.styles, function(value, key){
- var reg = /^border\w*/ig;
- if (!key.test(reg)){
- this.node.setStyle(key, value);
- }
- }.bind(this));
- }
- if (name=="tableStyles"){
- this.table.clearStyles();
- Object.each(this.json.tableStyles, function(value, key){
- var reg = /^border\w*/ig;
- if (!key.test(reg)){
- this.table.setStyle(key, value);
- }
- }.bind(this));
- }
- if (name=="properties"){
- try{
- this.setCustomProperties();
- }catch(e){}
- var table = this.node.getElement("table");
- if(table)table.setProperties(this.json.properties);
- }
- },
- _setEditStyle_custom: function(name, obj, oldValue){
- if (name=="id"){
- if (oldValue && this.json.id!=oldValue){
- debugger;
- var reg = new RegExp("^"+oldValue, "i");
- this.containers.each(function(container){
- var id = container.json.id;
- var newId = id.replace(reg, this.json.id);
- container.json.id = newId;
- delete this.form.json.moduleList[id];
- this.form.json.moduleList[newId] = container.json;
- container._setEditStyle("id");
- if(container.property && container.property.propertyContent){
- var pid = container.property.data.pid;
- var input = container.property.propertyContent.getElement("input[name='"+pid+"id']");
- if(input)input.set("value", newId);
- }
- }.bind(this));
- this.elements.each(function(container){
- var id = container.json.id;
- var newId = id.replace(reg, this.json.id);
- container.json.id = newId;
- delete this.form.json.moduleList[id];
- this.form.json.moduleList[newId] = container.json;
- container._setEditStyle("id");
- if(container.property && container.property.propertyContent){
- var pid = container.property.data.pid;
- var input = container.property.propertyContent.getElement("input[name='"+pid+"id']");
- if(input)input.set("value", newId);
- }
- }.bind(this));
- }
- }
- if (name=="titleStyles"){
- var ths = this.table.getElements("th");
- ths.each(function(th){
- var opacity = th.getStyle("opacity");
- this.setCustomNodeStyles(th, this.json.titleStyles);
- if(opacity)th.setStyle("opacity", opacity);
- }.bind(this));
- }
- if (name=="contentStyles"){
- var tds = this.table.getElements("td");
- tds.each(function(td){
- var opacity = td.getStyle("opacity");
- this.setCustomNodeStyles(td, this.json.contentStyles);
- if(opacity)td.setStyle("opacity", opacity);
- }.bind(this));
- }
- var setImportExportAreaNodeWidth = function () {
- if( ["centerTop","centerBottom"].contains( this.json.impexpPosition ) ){
- var width = 2;
- if( this.exportActionNode ){
- width = width + this.exportActionNode.getSize().x +
- this.exportActionNode.getStyle("padding-left").toFloat() +
- + this.exportActionNode.getStyle("padding-right").toFloat() +
- + this.exportActionNode.getStyle("margin-left").toFloat() +
- + this.exportActionNode.getStyle("margin-right").toFloat()
- }
- if( this.importActionNode ){
- width = width + this.importActionNode.getSize().x +
- this.importActionNode.getStyle("padding-left").toFloat() +
- + this.importActionNode.getStyle("padding-right").toFloat() +
- + this.importActionNode.getStyle("margin-left").toFloat() +
- + this.importActionNode.getStyle("margin-right").toFloat()
- }
- this.importExportAreaNode.setStyle( "width", width+"px" );
- }else{
- this.importExportAreaNode.setStyle( "width", "auto" );
- }
- }.bind(this);
- if( name === "impexpType" ){
- debugger;
- //允许导入
- var importenable = this.json.impexpType === "impexp" || this.json.impexpType === "imp";
- //允许导出
- var exportenable = this.json.impexpType === "impexp" || this.json.impexpType === "exp";
- if( this.impexpNode )this.impexpNode.destroy();
- this.impexpNode = null;
- this.impexpNode = this.node.getElement("div.impexpNode");
- if( this.impexpNode )this.impexpNode.destroy();
- this.impexpNode = null;
- if( !exportenable && !importenable ){
- return;
- }
- var position = ["leftTop","centerTop","rightTop"].contains( this.json.impexpPosition || "" ) ? "top" : "bottom";
- this.impexpNode = new Element("div.impexpNode", { styles : { "width" : "100%", "overflow" : "hidden" } }).inject(this.node, position);
- var importExportAreaNode = new Element("div.importExportAreaNode").inject( this.impexpNode );
- if( ["leftTop","leftBottom"].contains( this.json.impexpPosition || "" ) ){
- importExportAreaNode.setStyles({ "float" : "left", "margin" : "0px" })
- }else if( ["rightTop","rightBottom"].contains( this.json.impexpPosition || "" ) ){
- importExportAreaNode.setStyles({ "float" : "right", "margin" : "0px" })
- }else{
- importExportAreaNode.setStyles({ "float" : "none", "margin" : "0px auto" })
- }
- this.importExportAreaNode = importExportAreaNode;
- var styles;
- var width = 0;
- if( exportenable ){
- var exportActionNode = new Element("div.exportActionStyles", { text : this.json.exportActionText }).inject( importExportAreaNode );
- if( this.json.exportActionStyles ){
- styles = Object.clone(this.json.exportActionStyles)
- }else{
- styles = {
- "color" : "#777",
- "border-radius": "5px",
- "border": "1px solid #ccc",
- "cursor": "pointer",
- "height": "26px",
- "float" : "left",
- "line-height": "26px",
- "padding": "0px 5px",
- "background-color": "#efefef",
- "margin" : "5px"
- }
- }
- exportActionNode.setStyles(styles);
- this.exportActionNode = exportActionNode;
- }
- if( importenable ){
- var importActionNode = new Element("div.importActionNode", { text : this.json.importActionText }).inject( importExportAreaNode );
- if( this.json.importActionStyles ){
- styles = Object.clone(this.json.importActionStyles);
- }else{
- styles = {
- "color" : "#777",
- "border-radius": "5px",
- "border": "1px solid #ccc",
- "cursor": "pointer",
- "height": "26px",
- "float" : "left",
- "line-height": "26px",
- "padding": "0px 5px",
- "background-color": "#efefef",
- "margin" : "5px"
- }
- }
- importActionNode.setStyles(styles);
- this.importActionNode = importActionNode;
- }
- setImportExportAreaNodeWidth();
- }
- if( name === "impexpPosition" && this.impexpNode && this.importExportAreaNode ){
- var position = ["leftTop","centerTop","rightTop"].contains( this.json.impexpPosition || "" ) ? "top" : "bottom";
- this.impexpNode.inject(this.node, position);
- var importExportAreaNode = this.importExportAreaNode;
- if( ["leftTop","leftBottom"].contains( this.json.impexpPosition || "" ) ){
- importExportAreaNode.setStyles({ "float" : "left", "margin" : "0px" })
- }else if( ["rightTop","rightBottom"].contains( this.json.impexpPosition || "" ) ){
- importExportAreaNode.setStyles({ "float" : "right", "margin" : "0px" })
- }else{
- importExportAreaNode.setStyles({ "float" : "none", "margin" : "0px auto" })
- }
- setImportExportAreaNodeWidth();
- }
- if( name === "importActionText" && this.importActionNode ){
- this.importActionNode.set("text", this.json.importActionText );
- setImportExportAreaNodeWidth();
- }
- if( name === "exportActionText" && this.exportActionNode ){
- this.exportActionNode.set("text", this.json.exportActionText );
- setImportExportAreaNodeWidth();
- }
- if( name === "importActionStyles" && this.importActionNode ){
- this.importActionNode.setStyles( this.json.importActionStyles || {} );
- setImportExportAreaNodeWidth();
- }
- if( name === "exportActionStyles" && this.exportActionNode ){
- this.exportActionNode.setStyles( this.json.exportActionStyles || {} );
- setImportExportAreaNodeWidth();
- }
- //if (name=="sequence") this.checkSequenceShow();
- },
- setDatatableStyles: function(){
- if (this.json.titleStyles){
- var ths = this.table.getElements("th");
- ths.each(function(th){
- var opacity = th.getStyle("opacity");
- this.setCustomNodeStyles(th, this.json.titleStyles);
- if(opacity)th.setStyle("opacity", opacity);
- }.bind(this));
- }
- if (this.json.contentStyles){
- var tds = this.table.getElements("td");
- tds.each(function(td){
- var opacity = td.getStyle("opacity");
- this.setCustomNodeStyles(td, this.json.contentStyles);
- if(opacity)td.setStyle("opacity", opacity);
- }.bind(this));
- }
- },
- setAllStyles: function(){
- this.setPropertiesOrStyles("styles");
- this.setPropertiesOrStyles("tableStyles");
- this.setPropertiesOrStyles("properties");
- this.setDatatableStyles();
- this.setImpExpTableStyles();
- this.reloadMaplist();
- },
- //checkSequenceShow: function(){
- // if (this.json.sequence=="yes"){
- // if (!this.sequenceTitleTd || !this.sequenceTd){
- // if (this.sequenceTitleTd){
- // this.sequenceTitleTd.destroy();
- // this.sequenceTitleTd = null;
- // }
- // if (this.sequenceTd){
- // this.sequenceTd.destroy();
- // this.sequenceTd = null;
- // }
- // var trs = this.node.getElements("tr");
- // if (trs[0]){
- // this.sequenceTitleTd = new Element("th", {"styles": this.css.sequenceTitleTd}).inject(trs[0], "top");
- // }
- // if (trs[1]){
- // this.sequenceTd = new Element("td", {"styles": this.css.sequenceTd, "text": "1"}).inject(trs[1], "top");
- // }
- // }
- // }else{
- // if (this.sequenceTitleTd){
- // this.sequenceTitleTd.destroy();
- // this.sequenceTitleTd = null;
- // }
- // if (this.sequenceTd){
- // this.sequenceTd.destroy();
- // this.sequenceTd = null;
- // }
- // }
- //},
- getContainerNodes: function(){
- return this.node.getElements("td");
- },
- copyComponentJsonData: function(newNode, pid){
- var tds = newNode.getElements("td");
- var ths = newNode.getElements("th");
- tds.each(function(td, idx){
- var newContainerJson = Object.clone(this.containers[idx].json);
- newContainerJson.id = this.containers[idx]._getNewId(pid);
- this.form.json.moduleList[newContainerJson.id] = newContainerJson;
- td.set("id", newContainerJson.id);
- }.bind(this));
- ths.each(function(th, idx){
- var newElementJson = Object.clone(this.elements[idx].json);
- newElementJson.id = this.elements[idx]._getNewId(pid);
- this.form.json.moduleList[newElementJson.id] = newElementJson;
- th.set("id", newElementJson.id);
- }.bind(this));
- },
- loadExistedNodeTh: function (cell, moduleData) {
- var thElement = new MWF.FCDatatable$Title(this.form);
- thElement.load(moduleData, cell, this);
- this.elements.push(thElement);
- },
- loadExistedNodeTd: function (cell, moduleData) {
- var tdContainer = new MWF.FCDatatable$Data(this.form);
- tdContainer.load(moduleData, cell, this);
- this.containers.push(tdContainer);
- },
- deleteThWithNode: function (cell) {
- var module = cell.retrieve("module");
- if (module){
- this.elements.erase(module);
- module.destroy();
- }
- },
- deleteTdWithNode: function (cell) {
- var module = cell.retrieve("module");
- if (module){
- this.containers.erase(module);
- module.destroy();
- }
- }
- });
|