| | |
| | | ?> |
| | | |
| | | |
| | | $('#pageContent').find("select:not(.chosen-select)").combobox({ |
| | | select: function (event, ui) { |
| | | if (jQuery(".panel #Filter").length > 0) { |
| | | jQuery(".panel #Filter").trigger('click'); |
| | | $('#pageContent').find("select:not(.chosen-select)").select2({ |
| | | placeholder: '', |
| | | width: 'element', |
| | | selectOnBlur: true, |
| | | allowClear: true, |
| | | }).on('change', function(e) { |
| | | if (jQuery("#pageForm .table #Filter").length > 0) { |
| | | jQuery("#pageForm .table #Filter").trigger('click'); |
| | | } |
| | | } |
| | | }); |
| | | $('.chosen-select').chosen({no_results_text: "<?php echo $wb['globalsearch_noresults_text_txt']; ?>", width: '300px'}); |
| | | /* TODO: find a better way! */ |
| | | //$('.chosen-select').chosen({no_results_text: "<?php echo $wb['globalsearch_noresults_text_txt']; ?>", width: '300px'}); |
| | | <?php |
| | | } |
| | | ?> |
| | |
| | | }, |
| | | success: function(data, textStatus, jqXHR) { |
| | | hideLoadIndicator(); |
| | | jQuery('#sideNav').html(jqXHR.responseText); |
| | | jQuery('#sidebar').html(jqXHR.responseText); |
| | | }, |
| | | error: function() { |
| | | hideLoadIndicator(); |
| | |
| | | }, |
| | | success: function(data, textStatus, jqXHR) { |
| | | hideLoadIndicator(); |
| | | jQuery('#topNav').html(jqXHR.responseText); |
| | | jQuery('#topnav-container').html(jqXHR.responseText); |
| | | }, |
| | | error: function(o) { |
| | | hideLoadIndicator(); |