summaryrefslogtreecommitdiff
path: root/lib/plugins/styling/script.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-06-26 13:35:15 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-06-26 13:35:15 +0200
commitbcea9d64ebf4b0cc2c80209b7669e3e7e954c4c8 (patch)
tree7d3f99b400b444b38779455e30b230448941cb31 /lib/plugins/styling/script.js
parent3e2beab52631135f77d0ad5b6ed297458bfff2f2 (diff)
downloadrpg-bcea9d64ebf4b0cc2c80209b7669e3e7e954c4c8.tar.gz
rpg-bcea9d64ebf4b0cc2c80209b7669e3e7e954c4c8.tar.bz2
removed no longer needed ajax action components
Diffstat (limited to 'lib/plugins/styling/script.js')
-rw-r--r--lib/plugins/styling/script.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/plugins/styling/script.js b/lib/plugins/styling/script.js
index f732c0524..409148471 100644
--- a/lib/plugins/styling/script.js
+++ b/lib/plugins/styling/script.js
@@ -5,6 +5,8 @@ jQuery(function () {
var $styling_plugin = jQuery('#plugin__styling');
if (!$styling_plugin.length) return;
+ // add the color picker
+ $styling_plugin.find('.color').iris({});
if (!$styling_plugin.hasClass('ispopup')) {
var $hl = $styling_plugin.find('h1').first();
@@ -18,9 +20,6 @@ jQuery(function () {
return;
}
- // add the color picker
- $styling_plugin.find('.color').iris({});
-
// append the loader screen
$loader = window.opener.jQuery('#plugin__styling_loader');
if (!$loader.length) {
@@ -45,8 +44,5 @@ jQuery(function () {
// load preview in main window
var now = new Date().getTime();
var $style = window.opener.jQuery('link[rel=stylesheet][href*="lib/exe/css.php"]');
- $style.attr('href', '');
$style.attr('href', DOKU_BASE + 'lib/exe/css.php?preview=1&tseed=' + now);
-
-
});