Permalink
Browse files

Cache busting help links (so we see updated text) and using new :host…

…() selector :(
  • Loading branch information...
1 parent e9ca6d4 commit 41dc8fba07a044023e23fe7640a35ea77b0fc237 @remy remy committed Feb 19, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/chrome/navigation.js
View
@@ -63,8 +63,8 @@ $('#control div.help a:last').click(function () {
return false;
});
-$('#help a[host=' + window.location.host + ']').live('click', function () {
- $('#help #content').load(this.href);
+$('#help a:host(' + window.location.host + ')').live('click', function () {
+ $('#help #content').load(this.href + '?' + Math.random());
return false;
});
@@ -73,7 +73,7 @@ $(window).bind('togglehelp', function () {
var s = 100, right = helpOpen ? 0 : 300;
if (helpOpen == false) {
- $('#help #content').load('/help/index.html');
+ $('#help #content').load('/help/index.html?' + Math.random());
}
$bin.find('> div').animate({ right: right }, { duration: s });
$('#control').animate({ right: right }, { duration: s });

0 comments on commit 41dc8fb

Please sign in to comment.