better noscript UI

This commit is contained in:
Joey Hess 2012-07-29 00:55:22 -04:00
parent 376f8443c1
commit 38ade1af70
4 changed files with 38 additions and 27 deletions

View file

@ -17,7 +17,7 @@ $.LongPoll = (function() {
'dataType': 'html',
'success': function(data, status, jqxhr) {
$('##{ident}').replaceWith(data);
setTimeout($.LongPoll.send, #{delay});
setTimeout($.LongPoll.send, #{show delay});
numerrs=0;
},
'error': function(jqxhr, msg, e) {
@ -26,7 +26,7 @@ $.LongPoll = (function() {
window.close();
}
else {
setTimeout($.LongPoll.send, #{delay});
setTimeout($.LongPoll.send, #{show delay});
}
},
});
@ -35,7 +35,7 @@ $.LongPoll = (function() {
}());
$(document).bind('ready.app', function() {
setTimeout($.LongPoll.send, #{startdelay});
setTimeout($.LongPoll.send, #{show startdelay});
});
})( jQuery );

View file

@ -1,2 +1,2 @@
<noscript>
<meta http-equiv="refresh" content="#{show delayseconds}; URL=@{NoScriptR}">
<meta http-equiv="refresh" content="#{show delayseconds}; URL=@{this}">

View file

@ -1,4 +1,17 @@
<span ##{ident}>
$if warnNoScript
<noscript>
<div .alert .alert-block>
<h4 .alert-heading>Javascript is disabled
<p>
This display cannot update in real-time without Javascript. #
Can you turn it on?
<p>
Otherwise, there are two options:
<p>
<div .btn-group>
<a .btn href="@{NoScriptAutoR}">Auto-refresh every 3 seconds #
<a .btn href="@{NoScriptR}">Manually refresh
<div .span9>
$if null transfers
<h2>No current transfers