[Mapbender-commits] r10327 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Nov 13 10:20:11 PST 2019
Author: armin11
Date: 2019-11-13 10:20:11 -0800 (Wed, 13 Nov 2019)
New Revision: 10327
Modified:
trunk/mapbender/http/plugins/mb_button.js
Log:
Bugfix for new GUI 2019 - loadwmc started by using mb_button,js, but then the wmc list won't be reinitialized. The fix need a js element_var reinitializeLoadWmc in the calling mb_button.js based element which is set to true!. Closing the dialog on loading a wmc is not integrated so far.
Modified: trunk/mapbender/http/plugins/mb_button.js
===================================================================
--- trunk/mapbender/http/plugins/mb_button.js 2019-11-11 16:47:52 UTC (rev 10326)
+++ trunk/mapbender/http/plugins/mb_button.js 2019-11-13 18:20:11 UTC (rev 10327)
@@ -58,6 +58,7 @@
var that = this;
var target = (o.$target && o.$target.jquery && o.$target.size() === 1) ?
o.$target : $([]);
+
var dialog = target.css({
position: "static",
top: "auto",
@@ -70,6 +71,11 @@
});
var openDialog = function () {
+ //workaround for new GUI 2019 - loadwmc normally cannot be called via mb_button.js!
+ //closing is not possible - only if dialog with class name loadwmc-dialog will be closed by javascripts/mod_loadwmc.js
+ if (options.reinitializeLoadWmc == 'true') {
+ Mapbender.modules.loadwmc.show();
+ }
dialog.dialog("open");
dialog.dialog({ height: options.dialogHeight });
dialog.dialog({ width: options.dialogWidth });
@@ -84,6 +90,7 @@
on: o.src.replace(/_off/, "_on"),
off: o.src,
name: o.id,
+
go: openDialog
});
More information about the Mapbender_commits
mailing list