| | |
| | | } |
| | | } |
| | | |
| | | 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; |
| | |
| | | ?> |
| | | |
| | | |
| | | $('#pageContent,#sidebar').find("select:not(.chosen-select)").select2({ |
| | | $('#pageContent').find("select:not(.chosen-select)").select2({ |
| | | placeholder: '', |
| | | width: 'element', |
| | | selectOnBlur: true, |
| | |
| | | success: function(data, textStatus, jqXHR) { |
| | | hideLoadIndicator(); |
| | | jQuery('#sidebar').html(jqXHR.responseText); |
| | | onAfterSideNavLoaded(); |
| | | loadPushyMenu(); |
| | | }, |
| | | error: function() { |