fixed error foreach error in timeslider.js

This commit is contained in:
Matthias Bartelmeß 2012-03-24 19:01:04 +01:00
parent cf1be9b4bf
commit 1478820d60

View file

@ -139,7 +139,8 @@ function handleClientVars(message)
var export_rev_regex = /(\/\d+)?\/export/ var export_rev_regex = /(\/\d+)?\/export/
BroadcastSlider.onSlider(function(revno) 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')); this.setAttribute('href', this.href.replace(export_rev_regex, '/' + revno + '/export'));
}); });