From fee4e959d00a2eb6bcf50507ab632850f3f1e854 Mon Sep 17 00:00:00 2001 From: johnyma22 Date: Tue, 16 Oct 2012 18:56:50 +0100 Subject: [PATCH] fixes issue #1067 all kudos to analphabet and kingkaeru__ in #etherpad-lite-dev for the solution --- src/static/js/timeslider.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index e630bde0e..3bf8d4c2f 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( /\/[A-Za-z0-9_]+\/(\d+\/)?export/ , '/' + padId + '/' + revno + '/export')); }); });