Skip to content

Commit

Permalink
add sage toolbar icon on the right side of the bar to avoid causing p…
Browse files Browse the repository at this point in the history
…roblems with the URL bar, fixes #94
  • Loading branch information
petea committed Apr 23, 2013
1 parent b2fe816 commit e135416
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/content/sage_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,10 @@ var sageOverlay = {
var newSet = "";
var child = toolbar.firstChild;
while (child) {
if(child.id == "urlbar-container") {
newSet += "sage-button,";
}
newSet += child.id + ",";
child = child.nextSibling;
}
newSet = newSet.substring(0, newSet.length - 1);
newSet += "sage-button";
toolbar.currentSet = newSet;
toolbar.setAttribute("currentset", newSet);
toolbox.ownerDocument.persist(toolbar.id, "currentset");
Expand Down

0 comments on commit e135416

Please sign in to comment.