We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d4870 commit e39356aCopy full SHA for e39356a
interface/web/js/scrigo.js.php
@@ -302,14 +302,14 @@ function loadMenus() {
302
303
}
304
305
-function changeTab(tab,target) {
+function changeTab(tab,target,force) {
306
//document.forms[0].next_tab.value = tab;
307
document.pageForm.next_tab.value = tab;
308
309
var idel = jQuery('form#pageForm').find('[name="id"]');
310
var id = null;
311
if(idel.length > 0) id = idel.val();
312
- if(tabChangeDiscard == 'y') {
+ if(tabChangeDiscard == 'y' && !force) {
313
if((idel.length < 1 || id) && (pageFormChanged == false || window.confirm(tabChangeDiscardTxt))) {
314
var next_tab = tab;
315
if(id) loadContent(target, {'next_tab': next_tab, 'id': id});
0 commit comments