summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-28 23:55:41 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-28 23:55:41 -0400
commita498be7f98927370ad29221a170530a6de01b928 (patch)
treea52027e617be26c1c2a2d001691cd97ed893c58a /templates
parent9b18dc2a394560d6a6f39b61e1155b8bb512caec (diff)
renamed /status to /transfers
Also fixed a bug; the ident for the div was regnerated each time /status was called. This only was the same as the original ident due to luck.
Diffstat (limited to 'templates')
-rw-r--r--templates/longpolling.julius4
-rw-r--r--templates/transfers.hamlet (renamed from templates/status.hamlet)5
2 files changed, 3 insertions, 6 deletions
diff --git a/templates/longpolling.julius b/templates/longpolling.julius
index eff8d3f44..945ef1251 100644
--- a/templates/longpolling.julius
+++ b/templates/longpolling.julius
@@ -1,5 +1,5 @@
-// Uses long-polling to update a div with id=#{updating}
+// Uses long-polling to update a div with id=#{ident}
// The gethtml route should return a new div, with the same id.
//
// Maximum update frequency is controlled by #{startdelay}
@@ -16,7 +16,7 @@ $.LongPoll = (function() {
'url': '@{gethtml}',
'dataType': 'html',
'success': function(data, status, jqxhr) {
- $('##{updating}').replaceWith(data);
+ $('##{ident}').replaceWith(data);
setTimeout($.LongPoll.send, #{delay});
numerrs=0;
},
diff --git a/templates/status.hamlet b/templates/transfers.hamlet
index 2ccea1f1a..154e8d58b 100644
--- a/templates/status.hamlet
+++ b/templates/transfers.hamlet
@@ -1,4 +1,4 @@
-<span ##{updating}>
+<span ##{ident}>
<div .span9>
$if null transfers
<h2>No current transfers
@@ -25,6 +25,3 @@
<small .pull-right>queued (#{size})</small>
<div .progress .progress-striped>
<div .bar style="width: #{percent};">
- <footer>
- <span>
- polled at #{time}