From dfd76aab6b76fbdf0bff78589cbed12eb8cea336 Mon Sep 17 00:00:00 2001 From: cdujeu Date: Tue, 17 Dec 2013 16:46:33 +0100 Subject: [PATCH] Auto switch to list tab on context change, thus do not trigger reloadDataNode() to avoid auto switch to list tab. --- .../plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php | 5 +++-- core/src/plugins/access.ajxp_conf/manifest.xml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php b/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php index 3cf4a3a8d6..b641caace8 100644 --- a/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php +++ b/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php @@ -1240,7 +1240,9 @@ public function switchAction($action, $httpVars, $fileVars) AJXP_XMLWriter::sendMessage(null, $mess["ajxp_conf.53"]); } else { AJXP_XMLWriter::sendMessage($mess["ajxp_conf.54"], null); - AJXP_XMLWriter::reloadDataNode("", (isSet($httpVars["newLabel"])?$repId:false)); + if(isSet($httpVars["newLabel"])) { + AJXP_XMLWriter::reloadDataNode("", $repId); + } AJXP_XMLWriter::reloadRepositoryList(); } AJXP_XMLWriter::close(); @@ -1530,7 +1532,6 @@ public function switchAction($action, $httpVars, $fileVars) @unlink(AJXP_PLUGINS_MESSAGES_FILE); AJXP_XMLWriter::header(); AJXP_XMLWriter::sendMessage($mess["ajxp_conf.97"], null); - AJXP_XMLWriter::reloadDataNode(); AJXP_XMLWriter::close(); diff --git a/core/src/plugins/access.ajxp_conf/manifest.xml b/core/src/plugins/access.ajxp_conf/manifest.xml index 427b07ff7c..2a4687b09d 100644 --- a/core/src/plugins/access.ajxp_conf/manifest.xml +++ b/core/src/plugins/access.ajxp_conf/manifest.xml @@ -49,7 +49,7 @@
-
+