| | |
| | | <?php |
| | | session_start(); |
| | | include '../../lib/config.inc.php'; |
| | | header('Content-Type: text/javascript; charset=utf-8'); // the config file sets the content type header so we have to override it here! |
| | | require_once '../../lib/app.inc.php'; |
| | |
| | | } |
| | | } |
| | | }); |
| | | $('.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(); |
| | |
| | | } |
| | | |
| | | function changeTab(tab,target,force) { |
| | | if(requestsRunning > 0) return false; |
| | | |
| | | //document.forms[0].next_tab.value = tab; |
| | | document.pageForm.next_tab.value = tab; |
| | | |
| | |
| | | oldPWField.remove(); |
| | | var pword = password(<?php echo $min_password_length; ?>, false, 1); |
| | | jQuery('#'+repeatPasswordFieldID).val(pword); |
| | | newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup'); |
| | | newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup').select(); |
| | | } |
| | | |
| | | var funcDisableClick = function(e) { e.preventDefault(); return false; }; |