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

This commit is contained in:
remy 2011-02-19 19:48:56 +00:00
parent e9ca6d4a32
commit 41dc8fba07

View File

@ -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 });