Skip to content

Commit

Permalink
Use "[% sitename %]" instead of hard-coding
Browse files Browse the repository at this point in the history
This was made available when we enhanced script-globbing to invoke template toolkit
substitution.  The one downside to this is that for people who have javascript_debug
set in user_params get their scripts un-globbed, and so will see

  "[% sitename %] - Firehose (22)"

...or similar for their hose window title.
  • Loading branch information
scc committed Mar 17, 2008
1 parent 95d1a77 commit d504997
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions plugins/Ajax/htdocs/images/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ var ua=navigator.userAgent;
var is_ie = ua.match("/MSIE/");


// eventually add site specific constants like this to a separate .js
var sitename = "Slashdot";

function createPopup(xy, titlebar, name, contents, message, onmouseout) {
var body = document.getElementsByTagName("body")[0];
var div = document.createElement("div");
Expand Down Expand Up @@ -956,11 +953,7 @@ function firehose_reorder() {
}
}
}
if (console_updating) {
document.title = sitename + " - Console (" + item_count + ")";
} else {
document.title = sitename + " - Firehose (" + item_count + ")";
}
document.title = "[% sitename %] - " + (console_updating ? "Console" : "Firehose") + " (" + item_count + ")";
}
}

Expand Down

0 comments on commit d504997

Please sign in to comment.