From e39356a84625fdc956544a8b2ccc38ad680b537c Mon Sep 17 00:00:00 2001 From: mcramer Date: Tue, 18 Sep 2012 17:21:09 +0000 Subject: [PATCH] Change: make changeTab capable of forcing changeTab --- interface/web/js/scrigo.js.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index caa717e6d..5c6110e63 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}); -- GitLab