From 10dc5b4e0ac49c7aa43266857ddd99187d3c93ec Mon Sep 17 00:00:00 2001 From: alec Date: Sat, 14 May 2011 20:38:37 +0000 Subject: - Fix loading default theme css, set $noajax to skip plugin initialization on AJAX requests git-svn-id: https://svn.roundcube.net/trunk@4770 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/jqueryui/jqueryui.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/jqueryui/jqueryui.php') diff --git a/plugins/jqueryui/jqueryui.php b/plugins/jqueryui/jqueryui.php index d3f2519db..fcfed9a4f 100644 --- a/plugins/jqueryui/jqueryui.php +++ b/plugins/jqueryui/jqueryui.php @@ -11,10 +11,12 @@ */ class jqueryui extends rcube_plugin { + public $noajax = true; + public function init() { $version = '1.8.12'; - + $rcmail = rcmail::get_instance(); $this->load_config(); @@ -30,7 +32,7 @@ class jqueryui extends rcube_plugin $this->include_stylesheet("themes/$ui_theme/jquery-ui-$version.custom.css"); } else { - $this->include_stylesheet("themes/$ui_theme/jquery-ui-$version.custom.css"); + $this->include_stylesheet("themes/default/jquery-ui-$version.custom.css"); } // jquery UI localization @@ -50,5 +52,3 @@ class jqueryui extends rcube_plugin } } - -?> -- cgit v1.2.3