Skip to content

Commit e39356a

Browse files
author
mcramer
committed
Change: make changeTab capable of forcing changeTab
1 parent 36d4870 commit e39356a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/js/scrigo.js.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,14 @@ function loadMenus() {
302302

303303
}
304304

305-
function changeTab(tab,target) {
305+
function changeTab(tab,target,force) {
306306
//document.forms[0].next_tab.value = tab;
307307
document.pageForm.next_tab.value = tab;
308308

309309
var idel = jQuery('form#pageForm').find('[name="id"]');
310310
var id = null;
311311
if(idel.length > 0) id = idel.val();
312-
if(tabChangeDiscard == 'y') {
312+
if(tabChangeDiscard == 'y' && !force) {
313313
if((idel.length < 1 || id) && (pageFormChanged == false || window.confirm(tabChangeDiscardTxt))) {
314314
var next_tab = tab;
315315
if(id) loadContent(target, {'next_tab': next_tab, 'id': id});

0 commit comments

Comments
 (0)