BUG-12932 SOLVED actualización del archivo maborak.loader.js
This commit is contained in:
@@ -939,9 +939,9 @@ this.panels.editor.elements.content.appendChild(t);title.object={elements:{label
|
||||
{title.object.drag=new this.parent.module.drag({elements:t,limit:true});title.object.drag.events={finish:function(drag)
|
||||
{if(!drag.moved){return false;}
|
||||
var title=this.data.db.title;var pos=this.parent.dom.position(title.object.elements.label);title.position=pos;var r=new leimnud.module.rpc.xmlhttp({url:this.options.dataServer,args:"action=saveTitlePosition&data="+{pro_uid:this.options.uid,position:title.position}.toJSONString()});r.make();}.extend(this,title.object.drag)};title.object.drag.make();}}},text:function(index)
|
||||
{var text=this.data.db.text[index];var a=document.createElement("div");a.className="processmap_text___"+this.options.theme;this.parent.dom.setStyle(a,{top:text.position.y,left:text.position.x,cursor:((this.options.rw===true)?"move":"default")});a.innerHTML=text.label;this.panels.editor.elements.content.appendChild(a);if(this.options.rw===true)
|
||||
{var menu=new this.parent.module.app.menuRight();menu.make({target:a,width:201,theme:this.options.theme,menu:[{image:"/images/properties.png",text:G_STRINGS.ID_PROCESSMAP_EDIT_TEXT,launch:function(evt,index){var text=this.data.db.text[index];new this.parent.module.app.prompt().make({label:G_STRINGS.ID_PROCESSMAP_EDIT_TEXT_CHANGE_TO,value:text.label.escapeHTML(),action:function(text,tObj){if(text.trim()!==""&&tObj.label!=text)
|
||||
{tObj.label=tObj.object.elements.label.innerHTML=text.escapeHTML();var r=new leimnud.module.rpc.xmlhttp({url:this.options.dataServer,args:"action=updateText&data="+{uid:tObj.uid,label:tObj.label.unescapeHTML()}.toJSONString()});r.make();}}.extend(this,text)});}.extend(this,index)},{image:"/images/delete.png",text:G_STRINGS.ID_PROCESSMAP_DELETE_TEXT,launch:function(evt,index){var text=this.data.db.text[index];var r=new leimnud.module.rpc.xmlhttp({url:this.options.dataServer,args:"action=deleteText&data="+{uid:text.uid}.toJSONString()});r.make();this.parent.dom.remove(text.object.elements.label);this.data.db.text[index]=null;}.extend(this,index)}]});this.observers.menu.register(menu.remove,menu);text.object={elements:{label:a}};text.object.drag=new this.parent.module.drag({elements:a,limit:true});text.object.drag.events={finish:function(index,drag)
|
||||
{var text=this.data.db.text[index];var a=document.createElement("div");a.className="processmap_text___"+this.options.theme;this.parent.dom.setStyle(a,{top:text.position.y,left:text.position.x,cursor:((this.options.rw===true)?"move":"default")});a.appendChild(document.createTextNode(''));a.childNodes[0].data=text.label;this.panels.editor.elements.content.appendChild(a);if(this.options.rw===true)
|
||||
{var menu=new this.parent.module.app.menuRight();menu.make({target:a,width:201,theme:this.options.theme,menu:[{image:"/images/properties.png",text:G_STRINGS.ID_PROCESSMAP_EDIT_TEXT,launch:function(evt,index){var text=this.data.db.text[index];new this.parent.module.app.prompt().make({label:G_STRINGS.ID_PROCESSMAP_EDIT_TEXT_CHANGE_TO,value:text.label,action:function(text,tObj){if(text.trim()!==""&&tObj.label!=text)
|
||||
{tObj.label=tObj.object.elements.label.childNodes[0].data=text;var r=new leimnud.module.rpc.xmlhttp({url:this.options.dataServer,args:"action=updateText&data="+{uid:tObj.uid,label:tObj.label}.toJSONString()});r.make();}}.extend(this,text)});}.extend(this,index)},{image:"/images/delete.png",text:G_STRINGS.ID_PROCESSMAP_DELETE_TEXT,launch:function(evt,index){var text=this.data.db.text[index];var r=new leimnud.module.rpc.xmlhttp({url:this.options.dataServer,args:"action=deleteText&data="+{uid:text.uid}.toJSONString()});r.make();this.parent.dom.remove(text.object.elements.label);this.data.db.text[index]=null;}.extend(this,index)}]});this.observers.menu.register(menu.remove,menu);text.object={elements:{label:a}};text.object.drag=new this.parent.module.drag({elements:a,limit:true});text.object.drag.events={finish:function(index,drag)
|
||||
{if(!drag.moved){return false;}
|
||||
var text=this.data.db.text[index];var pos=this.parent.dom.position(text.object.elements.label);text.position=pos;var r=new leimnud.module.rpc.xmlhttp({url:this.options.dataServer,args:"action=saveTextPosition&data="+{uid:text.uid,position:text.position}.toJSONString()});r.make();}.extend(this,index,text.object.drag)};text.object.drag.make();}},derivation:function(options)
|
||||
{tt=options;var index=this.tools.getIndexOfUid(options.tas_uid);var from=this.data.db.task[index];this.data.render.deleteDerivation(options.tas_uid);var affe=options.data;from.derivation.type=options.type;for(var i=0;i<affe.length;i++)
|
||||
|
||||
Reference in New Issue
Block a user