BUG-13788 SOLVED Cuando se realiza cambios en el contenido de la ventana de edición de triggers y posteriormente se minimiza la ventana, al hacer click nuevamente sobre el botón de edición que invoco a la ventana, la fuente de código modificado se pierde, volviéndose a cargar el fuente original.
This commit is contained in:
@@ -84,8 +84,16 @@ var insertFormVar = function(sFieldName, sValue) {
|
||||
};
|
||||
|
||||
function cancel(){
|
||||
if(opener) {
|
||||
opener.windowCode[document.getElementById('form[TRI_UID]').value] = false;
|
||||
}
|
||||
window.close();
|
||||
}
|
||||
window.onbeforeunload=function(){
|
||||
if(opener) {
|
||||
opener.windowCode[document.getElementById('form[TRI_UID]').value] = false;
|
||||
}
|
||||
};
|
||||
|
||||
function triggerSave1(form){
|
||||
ajax_post(form.action, form, 'POST');
|
||||
|
||||
@@ -71,9 +71,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
var windowCode = new Array();
|
||||
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();
|
||||
if ( !windowCode[sUID] ) {
|
||||
var windowOpen = 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));
|
||||
windowOpen.focus();
|
||||
windowCode[sUID]=windowOpen;
|
||||
} else {
|
||||
windowCode[sUID].focus();
|
||||
}
|
||||
} else {
|
||||
popupWindow('@G::LoadTranslation(ID_EDIT_TRIGGERS)', '@G::encryptlink(@#triggersEdit)?TRI_UID='+ sUID, 930, 600);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user