From d13b3cfb0b4dd088e77514ff64ebbc60b173ae87 Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Mon, 27 Jan 2014 18:50:53 +0100 Subject: [PATCH 1/2] make sure GetCapabilities XML is refreshed and not taken from browser cache in IE when the user changes see boundlessgeo/suite/issues/256 --- src/script/plugins/WMSSource.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/script/plugins/WMSSource.js b/src/script/plugins/WMSSource.js index 13466bbe..92df32f1 100644 --- a/src/script/plugins/WMSSource.js +++ b/src/script/plugins/WMSSource.js @@ -217,7 +217,11 @@ gxp.plugins.WMSSource = Ext.extend(gxp.plugins.LayerSource, { */ onAuthorizationChange: function() { if (this.store && this.url.charAt(0) === "/") { - this.store.reload(); + var lastOptions = this.store.lastOptions || {params: {}}; + Ext.apply(lastOptions.params, { + '_dc': Math.random() + }); + this.store.reload(lastOptions); } }, From e4273cd51ee227e4b38da4a0dde231258dcc633a Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Fri, 31 Jan 2014 15:04:33 +0100 Subject: [PATCH 2/2] apply outputConfig in addOutput call of legend plugin --- src/script/plugins/Legend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/plugins/Legend.js b/src/script/plugins/Legend.js index e4a3e403..17aa7c61 100644 --- a/src/script/plugins/Legend.js +++ b/src/script/plugins/Legend.js @@ -74,7 +74,7 @@ gxp.plugins.Legend = Ext.extend(gxp.plugins.Tool, { tooltip: this.tooltip, handler: function() { this.removeOutput(); - this.addOutput(); + this.addOutput(this.outputConfig); }, scope: this }];