diff options
author | John McLear <john@mclear.co.uk> | 2012-10-16 13:36:20 -0700 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-10-16 13:36:20 -0700 |
commit | 429651874f64f312d2a3dd09040aa2f8f44ed47b (patch) | |
tree | 9a9f79546cdefdbafa1432e507a9b73d422791bb | |
parent | b7d0751b185cd55e74390a87353b7df02640090d (diff) | |
parent | 6c89187f952ee248ff78c3ab9b3cbf4a78ae9e9f (diff) | |
download | etherpad-lite-429651874f64f312d2a3dd09040aa2f8f44ed47b.zip |
Merge pull request #1072 from marcelklehr/fix/timeslider-links-regexp
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')); }); }); |