diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 19:45:15 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 19:45:15 +0200 |
commit | b1a864fe66dcf7f538e4d304cc01ea9ec736b786 (patch) | |
tree | 4603faaf7ebe10c8feec6acdf9941cad51b63089 /lib/plugins/styler/script.js | |
parent | 9fb9909916c8ce7fbca17d536942c0166afe487c (diff) | |
download | rpg-b1a864fe66dcf7f538e4d304cc01ea9ec736b786.tar.gz rpg-b1a864fe66dcf7f538e4d304cc01ea9ec736b786.tar.bz2 |
fix keeping the current page
Diffstat (limited to 'lib/plugins/styler/script.js')
-rw-r--r-- | lib/plugins/styler/script.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/plugins/styler/script.js b/lib/plugins/styler/script.js index b71e46802..1c53987a4 100644 --- a/lib/plugins/styler/script.js +++ b/lib/plugins/styler/script.js @@ -4,7 +4,7 @@ jQuery(function () { // user openend the admin page, set cookie and redirect if (jQuery('#plugin__styler').length) { DokuCookie.setValue('styler_plugin', 1); - document.location.href = DOKU_BASE; + document.location.href = document.location.href.replace(/do=admin/, ''); } // The Styler Dialog is currently enabled, display it here and apply the preview styles @@ -15,7 +15,8 @@ jQuery(function () { $dialog.load( DOKU_BASE + '/lib/exe/ajax.php', { - 'call': 'plugin_styler' + 'call': 'plugin_styler', + 'id': JSINFO.id }, function () { // load the preview template |