Merged pull request #46 from MayhemYDG/master.

Fix #45
This commit is contained in:
James Campos 2011-04-29 08:45:30 -07:00
commit 08be0d279a
2 changed files with 10 additions and 2 deletions

View File

@ -1298,7 +1298,7 @@
updNow = $('input[type=button]', dialog);
$.bind(verbose, 'click', updater.cb.verbose);
$.bind(autoUpT, 'click', updater.cb.autoUpdate);
$.bind(updNow, 'click', updater.update);
$.bind(updNow, 'click', updater.updateNow);
$.append(d.body, dialog);
updater.cb.verbose.call(verbose);
return updater.cb.autoUpdate.call(autoUpT);
@ -1387,6 +1387,10 @@
return updater.update();
}
},
updateNow: function() {
$('#timer').textContent = 0;
return updater.update();
},
update: function() {
var cb, url, _ref;
if ((_ref = updater.request) != null) {

View File

@ -1019,7 +1019,7 @@ updater =
updNow = $ 'input[type=button]', dialog
$.bind verbose, 'click', updater.cb.verbose
$.bind autoUpT, 'click', updater.cb.autoUpdate
$.bind updNow, 'click', updater.update
$.bind updNow, 'click', updater.updateNow
$.append d.body, dialog
@ -1097,6 +1097,10 @@ updater =
if n == 0
updater.update()
updateNow: ->
$('#timer').textContent = 0
updater.update()
update: ->
updater.request?.abort()
url = location.href + '?' + Date.now() # fool the cache