summaryrefslogtreecommitdiff
path: root/lib/plugins/styler/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/styler/script.js')
-rw-r--r--lib/plugins/styler/script.js13
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({
+ });
+
}
);
}