提交 0e8033bc 编写于 作者: NoSubject's avatar NoSubject

流程职务选择报错,一些脚本错误修复

上级 7671fac2
......@@ -284,7 +284,7 @@ o2.widget.O2Duty = new Class({
getPersonData: function(){
if (!this.data.woUnit){
this.action.actions = {"getUnitduty": {"uri": "/jaxrs/unitduty/{id}"}};
this.action.invoke({"name": "getUnitduty", "async": false, "parameter": {"id": (this.data.dutyId || this.data.name)}, "success": function(json){
this.action.invoke({"name": "getUnitduty", "async": false, "parameter": {"id": (this.data.Id || this.data.name)}, "success": function(json){
this.data = json.data;
}.bind(this)});
}
......@@ -727,4 +727,4 @@ o2.widget.O2Org = function(value, container, options){
// }
// });
// }
// }, 10000);
\ No newline at end of file
// }, 10000);
......@@ -732,15 +732,15 @@ MWF.xApplication.cms.ScriptDesigner.Main = new Class({
}.bind(this));
}
};
if (!this.scriptHelpMenu){
MWF.require("MWF.widget.ScriptHelp", function(){
this.scriptHelpMenu = new MWF.widget.ScriptHelp($("MWFScriptAutoCode"), this.script.editor);
this.scriptHelpMenu.getEditor = function(){
if (this.scriptTab.showPage) return this.scriptTab.showPage.script.editor.editor;
return null;
}.bind(this)
}.bind(this));
}
// if (!this.scriptHelpMenu){
// MWF.require("MWF.widget.ScriptHelp", function(){
// this.scriptHelpMenu = new MWF.widget.ScriptHelp($("MWFScriptAutoCode"), this.script.editor);
// this.scriptHelpMenu.getEditor = function(){
// if (this.scriptTab.showPage) return this.scriptTab.showPage.script.editor.editor;
// return null;
// }.bind(this)
// }.bind(this));
// }
}.bind(this));
},
......
......@@ -743,15 +743,15 @@ MWF.xApplication.process.ScriptDesigner.Main = new Class({
}.bind(this));
}
};
if (!this.scriptHelpMenu){
MWF.require("MWF.widget.ScriptHelp", function(){
this.scriptHelpMenu = new MWF.widget.ScriptHelp($("MWFScriptAutoCode"), this.script.editor);
this.scriptHelpMenu.getEditor = function(){
if (this.scriptTab.showPage) return this.scriptTab.showPage.script.editor.editor;
return null;
}.bind(this)
}.bind(this));
}
// if (!this.scriptHelpMenu){
// MWF.require("MWF.widget.ScriptHelp", function(){
// this.scriptHelpMenu = new MWF.widget.ScriptHelp($("MWFScriptAutoCode"), this.script.editor);
// this.scriptHelpMenu.getEditor = function(){
// if (this.scriptTab.showPage) return this.scriptTab.showPage.script.editor.editor;
// return null;
// }.bind(this)
// }.bind(this));
// }
}.bind(this));
},
......
......@@ -133,20 +133,20 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
this.editor.addEvent("save", function(){
this.save();
}.bind(this));
this.editor.addEvent("reference", function(editor, e, e1){
if (!this.agentReferenceMenu){
MWF.require("MWF.widget.ScriptHelp", function(){
this.agentReferenceMenu = new MWF.widget.ScriptHelp(null, this.editor.editor, {
"onPostLoad": function(){
this.showReferenceMenu();
}.bind(this)
});
this.agentReferenceMenu.getEditor = function(){return this.editor.editor;}.bind(this)
}.bind(this));
}else{
this.showReferenceMenu();
}
}.bind(this));
// this.editor.addEvent("reference", function(editor, e, e1){
// if (!this.agentReferenceMenu){
// MWF.require("MWF.widget.ScriptHelp", function(){
// this.agentReferenceMenu = new MWF.widget.ScriptHelp(null, this.editor.editor, {
// "onPostLoad": function(){
// this.showReferenceMenu();
// }.bind(this)
// });
// this.agentReferenceMenu.getEditor = function(){return this.editor.editor;}.bind(this)
// }.bind(this));
// }else{
// this.showReferenceMenu();
// }
// }.bind(this));
var options = this.designer.styleSelectNode.options;
for (var i=0; i<options.length; i++){
......
......@@ -140,20 +140,20 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
this.editor.addEvent("save", function(){
this.save();
}.bind(this));
this.editor.addEvent("reference", function(editor, e, e1){
if (!this.invokeReferenceMenu){
MWF.require("MWF.widget.ScriptHelp", function(){
this.invokeReferenceMenu = new MWF.widget.ScriptHelp(null, this.editor.editor, {
"onPostLoad": function(){
this.showReferenceMenu();
}.bind(this)
});
this.invokeReferenceMenu.getEditor = function(){return this.editor.editor;}.bind(this)
}.bind(this));
}else{
this.showReferenceMenu();
}
}.bind(this));
//this.editor.addEvent("reference", function(editor, e, e1){
// if (!this.invokeReferenceMenu){
// MWF.require("MWF.widget.ScriptHelp", function(){
// this.invokeReferenceMenu = new MWF.widget.ScriptHelp(null, this.editor.editor, {
// "onPostLoad": function(){
// this.showReferenceMenu();
// }.bind(this)
// });
// this.invokeReferenceMenu.getEditor = function(){return this.editor.editor;}.bind(this)
// }.bind(this));
// }else{
// this.showReferenceMenu();
// }
//}.bind(this));
var options = this.designer.styleSelectNode.options;
for (var i=0; i<options.length; i++){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册