Permalink
Browse files

Fixed 648, anchors in URLs break the edit toggle

  • Loading branch information...
Jonas Obrist
Jonas Obrist committed Jan 14, 2011
1 parent fa5461a commit 7cfaf403871d9459f38983d0e5de727f5781c5f5
Showing with 2 additions and 2 deletions.
  1. +2 −2 cms/media/cms/js/tools.js
@@ -34,13 +34,13 @@ function insert_into_url(url, name, value){
}
}
if(dash_splits.length>1){
- url += dash_splits[1];
+ url += '#' + dash_splits[1];
}
if(url.substr(url.length-1, url.length)== "&"){
url = url.substr(0, url.length-1);
}
return url;
-}
+};
/* removes a parameter from an url */
function remove_from_url(url, name){

0 comments on commit 7cfaf40

Please sign in to comment.