summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2012-10-16 13:36:20 -0700
committerJohn McLear <john@mclear.co.uk>2012-10-16 13:36:20 -0700
commit429651874f64f312d2a3dd09040aa2f8f44ed47b (patch)
tree9a9f79546cdefdbafa1432e507a9b73d422791bb
parentb7d0751b185cd55e74390a87353b7df02640090d (diff)
parent6c89187f952ee248ff78c3ab9b3cbf4a78ae9e9f (diff)
downloadetherpad-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.js3
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'));
});
});