mirror of
https://github.com/jsbin/jsbin.git
synced 2026-02-01 16:46:05 +00:00
Cache busting help links (so we see updated text) and using new :host() selector :(
This commit is contained in:
parent
e9ca6d4a32
commit
41dc8fba07
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user