commit
08be0d279a
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user