From d80fd212b3a150f940f914289ef6ea792e7304ae Mon Sep 17 00:00:00 2001 From: Christian Meier Date: Tue, 26 Sep 2023 20:54:37 +0200 Subject: [PATCH] Fixed zmi sitemap toggle (#184) There is no longer a persistent URL parameter "dtpref_sitemap" that might be checked by Javascript. Refs https://github.com/idasm-unibe-ch/unibe-cms/issues/400 --- .../zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js b/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js index 15d661817..9f66fe384 100644 --- a/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js +++ b/Products/zms/plugins/www/bootstrap/plugin/bootstrap.plugin.zmi.js @@ -116,7 +116,7 @@ $ZMI.registerReady(function(){ // Toggle: Classical Sitemap Icon $('a#navbar-sitemap').each(function() { var $a = $(this); - if (self.window.parent.frames.length > 1 && typeof self.window.parent != "undefined" && (self.window.parent.location+"").indexOf('dtpref_sitemap=1') > 0) { + if (self.window.parent.frames.length > 1 && typeof self.window.parent != "undefined") { $a.attr('target','_top'); } else {