From f757771128c7c9414a35ac2743ff123934a8b211 Mon Sep 17 00:00:00 2001 From: Falko Timme <ft@falkotimme.com> Date: Fri, 09 Jan 2015 10:39:04 -0500 Subject: [PATCH] - Made sure SQL backups from servers that differ from the server where the website is on can be restored. A download of the backup is not possible in such a case, therefore I hide the "Download" button. --- interface/web/js/scrigo.js.php | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 18c0885..fd29930 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -93,7 +93,16 @@ <?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'); + } + } + }); + $('.chosen-select').chosen({no_results_text: "<?php echo $wb['globalsearch_noresults_text_txt']; ?>", width: '300px'}); <?php } ?> @@ -845,13 +854,13 @@ return Math.floor(Math.random() * (max - min + 1)) + min; } -jQuery('.addPlaceholder').live("click", function(){ +jQuery(document).on("click", ".addPlaceholder", function(){ var placeholderText = jQuery(this).text(); var template = jQuery(this).siblings(':input'); template.insertAtCaret(placeholderText); }); -jQuery('.addPlaceholderContent').live("click", function(){ +jQuery(document).on("click", ".addPlaceholderContent", function(){ var placeholderContentText = jQuery(this).find('.addPlaceholderContent').text(); var template2 = jQuery(this).siblings(':input'); template2.insertAtCaret(placeholderContentText); -- Gitblit v1.9.1