mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-10 00:45:01 -04:00
fixes issue #1067 all kudos to analphabet and kingkaeru__ in #etherpad-lite-dev for the solution
This commit is contained in:
parent
ac676c7d39
commit
d758bc407f
1 changed files with 1 additions and 2 deletions
|
@ -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'));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue