From 74ad7a858448b461da425ed84d56e9cea892a025 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 29 Apr 2015 16:39:40 +0200 Subject: [PATCH] timeslider: Fix export links Names of the pads can contain more charaters than \w. So while transforming the export links, we simply can allow all charaters except the slash as pad names. --- src/static/js/timeslider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); }); });