Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Feb 3, 2014
2 parents 9369cbf + 3dda12b commit 1cb15bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/script/plugins/Legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}];
Expand Down
6 changes: 5 additions & 1 deletion src/script/plugins/WMSSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},

Expand Down

0 comments on commit 1cb15bb

Please sign in to comment.