diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-16 19:52:26 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-16 19:52:26 +0200 |
commit | fb7685fb53589ebe099201297c0e8dbf20d89c59 (patch) | |
tree | 34b140d6a1a1ea3922cca14081e9dc3072f300fe /lib/plugins/styler/script.js | |
parent | 0f5e7090beb4c8b8e99aa87454c89b53ed11cc66 (diff) | |
download | rpg-fb7685fb53589ebe099201297c0e8dbf20d89c59.tar.gz rpg-fb7685fb53589ebe099201297c0e8dbf20d89c59.tar.bz2 |
more improvements
Diffstat (limited to 'lib/plugins/styler/script.js')
-rw-r--r-- | lib/plugins/styler/script.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/plugins/styler/script.js b/lib/plugins/styler/script.js index d09a8b8da..b3cadfd5e 100644 --- a/lib/plugins/styler/script.js +++ b/lib/plugins/styler/script.js @@ -1,10 +1,12 @@ 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; + } - + // The Styler Dialog is currently enabled, display it here and apply the preview styles if (DokuCookie.getValue('styler_plugin') == 1) { - - - // load dialog var $dialog = jQuery(document.createElement('div')); jQuery('body').append($dialog); @@ -35,6 +37,5 @@ jQuery(function () { }); } ); - } });
\ No newline at end of file |