Skip to content

Commit

Permalink
Properly ignore url fragment when splitting url path
Browse files Browse the repository at this point in the history
  • Loading branch information
mleinart committed May 8, 2012
1 parent 8805226 commit 1f3ef9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/content/js/dashboard.js
Expand Up @@ -2357,7 +2357,7 @@ function setDashboardName(name) {
saveButton.setText("Save");
saveButton.disable();
} else {
var urlparts = location.href.split('/');
var urlparts = location.href.split('#')[0].split('/');
var i = urlparts.indexOf('dashboard');
if (i == -1) {
Ext.Msg.alert("Error", "urlparts = " + Ext.encode(urlparts) + " and indexOf(dashboard) = " + i);
Expand Down

0 comments on commit 1f3ef9f

Please sign in to comment.