From e39356a84625fdc956544a8b2ccc38ad680b537c Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Tue, 18 Sep 2012 13:21:09 -0400
Subject: [PATCH] Change: make changeTab capable of forcing changeTab
---
interface/web/js/scrigo.js.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php
index caa717e..5c6110e 100644
--- a/interface/web/js/scrigo.js.php
+++ b/interface/web/js/scrigo.js.php
@@ -302,14 +302,14 @@
}
-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});
--
Gitblit v1.9.1