summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-04-29 15:48:10 +0100
committerJohn McLear <john@mclear.co.uk>2015-04-29 15:48:10 +0100
commit4b4a121f081a1de052a7bfa06b2ef06cd26a9433 (patch)
tree534f1230267b3aa34e30c2eb480bca29e6af80b1
parentac41d150c00e40c06fad519b3ccac6d40f033659 (diff)
parent74ad7a858448b461da425ed84d56e9cea892a025 (diff)
downloadetherpad-lite-4b4a121f081a1de052a7bfa06b2ef06cd26a9433.zip
Merge pull request #2643 from AlexanderS/fix-timeslider-export
timeslider: Fix export links
-rw-r--r--src/static/js/timeslider.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js
index 75c20022..08d6f68d 100644
--- a/src/static/js/timeslider.js
+++ b/src/static/js/timeslider.js
@@ -147,7 +147,7 @@ function handleClientVars(message)
// export_links is a jQuery Array, so .each is allowed.
export_links.each(function()
{
- this.setAttribute('href', this.href.replace( /(.+?)\/\w+\/(\d+\/)?export/ , '$1/' + padId + '/' + revno + '/export'));
+ this.setAttribute('href', this.href.replace( /(.+?)\/[^\/]+\/(\d+\/)?export/ , '$1/' + padId + '/' + revno + '/export'));
});
});