diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 15:37:50 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-17 15:37:50 +0200 |
commit | e422a60a9672c993b6872e856b9172dbd8135b56 (patch) | |
tree | 0f81c26007a369be2199e02c74e099c6f63badf0 /lib/plugins/styler/script.js | |
parent | 82f9aff6a65b1acaeec6cfde9a2848cb9cb92e03 (diff) | |
download | rpg-e422a60a9672c993b6872e856b9172dbd8135b56.tar.gz rpg-e422a60a9672c993b6872e856b9172dbd8135b56.tar.bz2 |
added color picker support
I'm not too hapy with it
Diffstat (limited to 'lib/plugins/styler/script.js')
-rw-r--r-- | lib/plugins/styler/script.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/plugins/styler/script.js b/lib/plugins/styler/script.js index d472c4fe7..b71e46802 100644 --- a/lib/plugins/styler/script.js +++ b/lib/plugins/styler/script.js @@ -1,6 +1,8 @@ +/* DOKUWIKI:include_once iris.js */ + jQuery(function () { // user openend the admin page, set cookie and redirect - if(jQuery('#plugin__styler').length) { + if (jQuery('#plugin__styler').length) { DokuCookie.setValue('styler_plugin', 1); document.location.href = DOKU_BASE; } @@ -22,11 +24,12 @@ jQuery(function () { $style.attr('href', DOKU_BASE + 'lib/exe/css.php?preview=1&tseed=' + now); // open the dialog - $dialog.dialog({ + var $dlg = $dialog.dialog({ 'title': LANG.plugins.styler.menu, 'width': 500, 'top': 50, - 'position': { 'my': 'left top', 'at': 'left top', 'of': window }, + 'maxHeight': 500, + 'position': { 'my': 'left bottom', 'at': 'left bottom', 'of': window }, // bring everything back to normal 'close': function (event, ui) { // disable the styler plugin again @@ -35,6 +38,10 @@ jQuery(function () { document.location.reload() } }); + + jQuery('.styler .color').iris({ + }); + } ); } |