Marius Cramer
2015-01-08 72f804db02de804be7a1082493aa5233b10dce2b
interface/web/js/scrigo.js.php
@@ -87,6 +87,22 @@
    }
}
function onAfterSideNavLoaded() {
   <?php
if($server_config_array['misc']['use_combobox'] == 'y'){
?>
    $('#sidebar').find("select:not(.chosen-select)").select2({
      placeholder: '',
      width: 'element',
      selectOnBlur: true,
      allowClear: true,
   });
<?php
}
?>
}
function onAfterContentLoad(url, data) {
    if(!data) data = '';
    else data = '&' + data;
@@ -95,7 +111,7 @@
?>
    $('#pageContent,#sidebar').find("select:not(.chosen-select)").select2({
    $('#pageContent').find("select:not(.chosen-select)").select2({
      placeholder: '',
      width: 'element',
      selectOnBlur: true,
@@ -431,6 +447,7 @@
                                 success: function(data, textStatus, jqXHR) {
                                                hideLoadIndicator();
                                    jQuery('#sidebar').html(jqXHR.responseText);
                                    onAfterSideNavLoaded();
                                    loadPushyMenu();
                                 },
                                 error: function() {