From 77cc4a99b15f4639b56c29a1207dc04b459c5d54 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Fri, 19 Dec 2014 12:18:11 -0500
Subject: [PATCH] - re-added jquery ui

---
 interface/web/js/scrigo.js.php |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php
index 18c0885..6768f8f 100644
--- a/interface/web/js/scrigo.js.php
+++ b/interface/web/js/scrigo.js.php
@@ -93,7 +93,17 @@
 <?php
 if($server_config_array['misc']['use_combobox'] == 'y'){
 ?>
-    $('#pageContent').find("select").combobox();
+
+
+    $('#pageContent').find("select:not(.chosen-select)").combobox({
+	    select: function (event, ui) {
+            if (jQuery(".panel #Filter").length > 0) {
+                jQuery(".panel #Filter").trigger('click');
+            }
+	    }
+    });
+    /* TODO: find a better way! */
+    //$('.chosen-select').chosen({no_results_text: "<?php echo $wb['globalsearch_noresults_text_txt']; ?>", width: '300px'});
 <?php
 }
 ?>
@@ -409,7 +419,7 @@
 											},
 											success: function(data, textStatus, jqXHR) {
                                                 hideLoadIndicator();
-												jQuery('#sideNav').html(jqXHR.responseText);
+												jQuery('#sidebar').html(jqXHR.responseText);
 											},
 											error: function() {
                                                 hideLoadIndicator();
@@ -426,7 +436,7 @@
 											},
 											success: function(data, textStatus, jqXHR) {
                                                 hideLoadIndicator();
-												jQuery('#topNav').html(jqXHR.responseText);
+												jQuery('#topnav-container').html(jqXHR.responseText);
 											},
 											error: function(o) {
                                                 hideLoadIndicator();
@@ -845,13 +855,13 @@
     return Math.floor(Math.random() * (max - min + 1)) + min;
 }
 
-jQuery('.addPlaceholder').live("click", function(){
+jQuery('.addPlaceholder').on("click", function(){
 	var placeholderText = jQuery(this).text();
 	var template = jQuery(this).siblings(':input');
 	template.insertAtCaret(placeholderText);
 });
 
-jQuery('.addPlaceholderContent').live("click", function(){
+jQuery('.addPlaceholderContent').on("click", function(){
 	var placeholderContentText = jQuery(this).find('.addPlaceholderContent').text();
 	var template2 = jQuery(this).siblings(':input');
 	template2.insertAtCaret(placeholderContentText);

--
Gitblit v1.9.1