diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index caa717e6d68344aec9cdbfee2f99967de048b1c5..5c6110e63b83cf2891bc7dd288417b886e42f5af 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -302,14 +302,14 @@ function loadMenus() { } -function changeTab(tab,target) { +function changeTab(tab,target,force) { //document.forms[0].next_tab.value = tab; document.pageForm.next_tab.value = tab; var idel = jQuery('form#pageForm').find('[name="id"]'); var id = null; if(idel.length > 0) id = idel.val(); - if(tabChangeDiscard == 'y') { + if(tabChangeDiscard == 'y' && !force) { if((idel.length < 1 || id) && (pageFormChanged == false || window.confirm(tabChangeDiscardTxt))) { var next_tab = tab; if(id) loadContent(target, {'next_tab': next_tab, 'id': id});