summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Bartelmeß <mba@fourplusone.de>2012-03-24 19:01:04 +0100
committerMatthias Bartelmeß <mba@fourplusone.de>2012-03-24 19:01:04 +0100
commit1478820d604a367896c58d7db729b7767cd2dab8 (patch)
tree5c26360ea38f2fb51e5d9d57d9b47d4dfda3d621
parentcf1be9b4bf8ac0e27971837ebc96f3c388ce19cb (diff)
downloadetherpad-lite-1478820d604a367896c58d7db729b7767cd2dab8.zip
fixed error foreach error in timeslider.js
-rw-r--r--src/static/js/timeslider.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js
index 5d173276..438b1695 100644
--- a/src/static/js/timeslider.js
+++ b/src/static/js/timeslider.js
@@ -139,7 +139,8 @@ function handleClientVars(message)
var export_rev_regex = /(\/\d+)?\/export/
BroadcastSlider.onSlider(function(revno)
{
- _.each(export_links, function()
+ // export_links is a jQuery Array, so .each is allowed.
+ export_links.each(function()
{
this.setAttribute('href', this.href.replace(export_rev_regex, '/' + revno + '/export'));
});