Validación de Trigger Wizard, Popup, Steps
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
|
||||
<TRI_TYPE type="hidden"/>
|
||||
|
||||
<STEP_UID type="hidden"/>
|
||||
|
||||
<ST_TYPE type="hidden"/>
|
||||
|
||||
<TRI_WEBBOT type="textareapm" class="formLabel" cols="115" rows="28" width="100%" height="380px" showVars="1" process="@#PRO_UID">
|
||||
</TRI_WEBBOT>
|
||||
|
||||
@@ -84,8 +88,12 @@ function cancel(){
|
||||
}
|
||||
|
||||
function triggerSave1(form){
|
||||
window.close();
|
||||
ajax_post(form.action, form, 'POST');
|
||||
if(@QSTEP_UID!="" && @QST_TYPE!="" && opener.showTriggers)
|
||||
opener.showTriggers(@QSTEP_UID,@QST_TYPE);
|
||||
if(opener.reloadTriggersShortList)
|
||||
opener.reloadTriggersShortList();
|
||||
window.close();
|
||||
}
|
||||
|
||||
]]></JS>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
var windowHeight = 460;
|
||||
|
||||
function triggerEditWizardSource (sUID){
|
||||
window.open('@G::encryptlink(@#triggersEdit)?TRI_UID='+ sUID +'&BYPASS=1','@G::LoadTranslation(ID_EDIT_TRIGGERS)'.replace(/\s/g,'_')+document.cookie+sUID,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=950,height=570,top='+((screen.height-570)/2)+',left='+((screen.width-950)/2)).focus();
|
||||
window.open('@G::encryptlink(@#triggersEdit)?TRI_UID='+ sUID +'&BYPASS=1','@G::LoadTranslation(ID_EDIT_TRIGGERS)'.replace(/\s/g,'_')+(function(s){var r='';for(var i in s)if(typeof s[i]=='string')r+=s[i].charCodeAt(0);return r;})(document.cookie)+sUID,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=950,height=570,top='+((screen.height-570)/2)+',left='+((screen.width-950)/2)).focus();
|
||||
}
|
||||
|
||||
function triggerNew() {
|
||||
@@ -71,12 +71,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
function triggerEdit(sUID,sw) {
|
||||
console.log(sw);
|
||||
if(parseInt(sw) > 0){
|
||||
popupWindow('@G::LoadTranslation(ID_EDIT_TRIGGERS)', '@G::encryptlink(@#triggersEdit)?TRI_UID='+ sUID , 930, 600);
|
||||
function triggerEdit( sUID, modified) {
|
||||
if(parseInt(modified) == 0){
|
||||
window.open('@G::encryptlink(@#triggersEdit)?TRI_UID='+ sUID,'@G::LoadTranslation(ID_EDIT_TRIGGERS)'.replace(/\s/g,'_')+(function(s){var r='';for(var i in s)if(typeof s[i]=='string')r+=s[i].charCodeAt(0);return r;})(document.cookie)+sUID,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=950,height=570,top='+((screen.height-570)/2)+',left='+((screen.width-950)/2)).focus();
|
||||
} else {
|
||||
window.open('@G::encryptlink(@#triggersEdit)?TRI_UID='+ sUID,'@G::LoadTranslation(ID_EDIT_TRIGGERS)'.replace(/\s/g,'_')+document.cookie+sUID,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=950,height=570,top='+((screen.height-570)/2)+',left='+((screen.width-950)/2)).focus();
|
||||
popupWindow('@G::LoadTranslation(ID_EDIT_TRIGGERS)', '@G::encryptlink(@#triggersEdit)?TRI_UID='+ sUID, 930, 600);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,6 +202,13 @@
|
||||
function triggerNewWizard(nameFunction, library) {//alert('@G::encryptlink(@#triggerNewWizard)?PRO_UID=@%PRO_UID&NAME_FUN='+nameFunction+'& PARAMETERS_FUN='+parametersFunct+'&PAGED_TABLE_ID='+@#PAGED_TABLE_ID);return;
|
||||
popupWindow('@G::LoadTranslation(ID_NEW_TRIGGERS)', '@G::encryptlink(@#triggerNewWizard)?PRO_UID=@%PRO_UID&NAME_FUN='+nameFunction+'&LIBRARY='+library+'&PAGED_TABLE_ID='+@#PAGED_TABLE_ID , 600, 600);
|
||||
}
|
||||
|
||||
function reloadTriggersShortList(){
|
||||
//@#PAGED_TABLE_ID.refresh();
|
||||
if(Pm.panels.buildingBlocks){
|
||||
Pm.data.render.buildingBlocks.injector('triggers');
|
||||
}
|
||||
}
|
||||
|
||||
]]>
|
||||
</JS>
|
||||
|
||||
@@ -5,13 +5,11 @@
|
||||
|
||||
<TRI_LOCATE_WEBBOT_PARAM type="hidden" showInTable="0"/>
|
||||
|
||||
<TRI_PARAM type="hidden" showInTable="0"/>
|
||||
|
||||
<TRI_TITLE type="text" colWidth="350" titleAlign="left" align="left">
|
||||
<en>Title</en>
|
||||
</TRI_TITLE>
|
||||
|
||||
<EDIT type="link" colWidth="40" value="@G::LoadTranslation(ID_EDIT)" link="#" onclick="triggerEdit(@QTRI_UID,@QTRI_LOCATE_WEBBOT_PARAM);return false;"/>
|
||||
<EDIT type="link" colWidth="40" value="@G::LoadTranslation(ID_EDIT)" link="#" onclick="triggerEdit(@QTRI_UID,@QTRI_LOCATE_WEBBOT_PARAM); return false;"/>
|
||||
|
||||
<PROPERTIES type="link" colWidth="40" value="@G::LoadTranslation(ID_PROPERTIES)" link="#" onclick="triggerProperties(@QTRI_UID);return false;"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user