diff options
author | Marcel Klehr <mklehr@gmx.net> | 2012-10-16 20:46:27 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2012-10-16 20:46:27 +0200 |
commit | 6c89187f952ee248ff78c3ab9b3cbf4a78ae9e9f (patch) | |
tree | 660275e5216763fc98251185f2a8c10bbf661b81 | |
parent | d7ec050f342a717146f181dac76fc1e2b0cada59 (diff) | |
download | etherpad-lite-6c89187f952ee248ff78c3ab9b3cbf4a78ae9e9f.zip |
Fix #1067 Corrected exports links regexp
-rw-r--r-- | src/static/js/timeslider.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index e630bde0..a2156b16 100644 --- a/src/static/js/timeslider.js +++ b/src/static/js/timeslider.js @@ -144,13 +144,12 @@ function handleClientVars(message) require('./pad_impexp').padimpexp.init(); //change export urls when the slider moves - var export_rev_regex = /(\/\d+)?\/export/ BroadcastSlider.onSlider(function(revno) { // 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( /(.+?)\/\w+\/(\d+\/)?export/ , '$1/' + padId + '/' + revno + '/export')); }); }); |