HOR-2399
This commit is contained in:
@@ -78,8 +78,7 @@ leimnud.event.add(getField('WE_TYPE'), 'change', function() {
|
||||
showRowById('WS_PASS');
|
||||
showRowById('WS_ROUNDROBIN');
|
||||
showRowById('subtitle2');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
getField('SEARCH').disabled = false;
|
||||
hideRowById("TEST");
|
||||
showRowById("SEARCH");
|
||||
@@ -88,7 +87,8 @@ leimnud.event.add(getField('WE_TYPE'), 'change', function() {
|
||||
hideRowById('WS_PASS');
|
||||
hideRowById('WS_ROUNDROBIN');
|
||||
hideRowById('subtitle2');
|
||||
}hideRowById('WS_ROUNDROBIN');
|
||||
}
|
||||
hideRowById('WS_ROUNDROBIN');
|
||||
}.extend(getField('WE_TYPE')));
|
||||
|
||||
/* function webEntry_validate
|
||||
@@ -154,22 +154,26 @@ var webEntry_generate = function(PRO_UID, TASKS, DYNAFORM) {
|
||||
odynaform = getField('DYNAFORM');
|
||||
sw = 0;
|
||||
if (otask.value == '')
|
||||
{ if(odynaform.value=='')
|
||||
{ alert(G_STRINGS.ID_WEBENTRY);
|
||||
{
|
||||
if (odynaform.value == '')
|
||||
{
|
||||
alert(G_STRINGS.ID_WEBENTRY);
|
||||
}
|
||||
}
|
||||
else
|
||||
{ if(odynaform.value=='')
|
||||
{ alert('This process does not have an assigned dynaform');
|
||||
}
|
||||
else
|
||||
{ sw=1;
|
||||
} else
|
||||
{
|
||||
if (odynaform.value == '')
|
||||
{
|
||||
alert('This process does not have an assigned dynaform');
|
||||
} else
|
||||
{
|
||||
sw = 1;
|
||||
}
|
||||
}
|
||||
if (sw == 1)
|
||||
{
|
||||
if (getField('WE_TYPE').value == 'SINGLE')
|
||||
{ oPanel1 = new leimnud.module.panel();
|
||||
{
|
||||
oPanel1 = new leimnud.module.panel();
|
||||
oPanel1.options = {
|
||||
size: {w: 500, h: 400},
|
||||
position: {x: 0, y: 0, center: true},
|
||||
@@ -179,7 +183,9 @@ var webEntry_generate = function(PRO_UID, TASKS, DYNAFORM) {
|
||||
fx: {modal: true, opacity: true, blinkToFront: true, fadeIn: false}
|
||||
};
|
||||
oPanel1.events = {
|
||||
remove: function() { delete(oPanel1); }.extend(this)
|
||||
remove: function () {
|
||||
delete(oPanel1);
|
||||
}.extend(this)
|
||||
};
|
||||
oPanel1.make();
|
||||
oPanel1.loader.show();
|
||||
@@ -196,8 +202,7 @@ var webEntry_generate = function(PRO_UID, TASKS, DYNAFORM) {
|
||||
scs.evalScript();
|
||||
}.extend(this);
|
||||
oRPC.make();
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
var k = new leimnud.module.rpc.xmlhttp({
|
||||
url: '../processes/processes_Ajax',
|
||||
@@ -223,10 +228,7 @@ var webEntry_generate = function(PRO_UID, TASKS, DYNAFORM) {
|
||||
method: 'POST',
|
||||
args: "action=webEntry_generate&data=" + {PRO_UID: PRO_UID, TASKS: getField('TASKS').value, DYNAFORM: getField('DYNAFORM').value, WE_TYPE: getField('WE_TYPE').value, WS_USER: getField('WS_USER').value, WS_PASS: getField('WS_PASS').value, WS_ROUNDROBIN: getField('WS_ROUNDROBIN').value, WE_USR: getField('WE_USR').value}.toJSONString()
|
||||
});
|
||||
oRPC.make();
|
||||
oPanel.remove();
|
||||
Pm.tmp.editProcessPanel.clearContent();
|
||||
Pm.tmp.editProcessPanel.loader.show();
|
||||
oRPC.callback = function (rpc, panel) {
|
||||
var r = new leimnud.module.rpc.xmlhttp({
|
||||
url: '../processes/processes_Ajax',
|
||||
args: "action=webEntry&data=" + {
|
||||
@@ -241,6 +243,11 @@ var webEntry_generate = function(PRO_UID, TASKS, DYNAFORM) {
|
||||
scs.evalScript();
|
||||
}.extend(this, panel);
|
||||
r.make();
|
||||
}.extend(this, panel);
|
||||
oRPC.make();
|
||||
oPanel.remove();
|
||||
Pm.tmp.editProcessPanel.clearContent();
|
||||
Pm.tmp.editProcessPanel.loader.show();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user