| | |
| | | } |
| | | } |
| | | |
| | | function onAfterContentLoad() { |
| | | function onAfterContentLoad(url, data) { |
| | | if(!data) data = ''; |
| | | else data = '&' + data; |
| | | <?php |
| | | if($server_config_array['misc']['use_combobox'] == 'y'){ |
| | | ?> |
| | |
| | | <?php |
| | | } |
| | | ?> |
| | | callHook('onAfterContentLoad'); |
| | | callHook('onAfterContentLoad', {'url': url, 'data': data }); |
| | | } |
| | | |
| | | function loadContentRefresh(pagename) { |
| | |
| | | success: function(data, textStatus, jqXHR) { |
| | | hideLoadIndicator(); |
| | | jQuery('#pageContent').html(jqXHR.responseText); |
| | | onAfterContentLoad(); |
| | | onAfterContentLoad(pagename, "refresh="+document.getElementById('refreshinterval').value); |
| | | pageFormChanged = false; |
| | | }, |
| | | error: function() { |
| | |
| | | document.location.href = 'index.php'; |
| | | } else { |
| | | jQuery('#pageContent').html(jqXHR.responseText); |
| | | onAfterContentLoad(); |
| | | onAfterContentLoad('content.php', jQuery('#'+formname).serialize()); |
| | | pageFormChanged = false; |
| | | } |
| | | loadMenus(); |
| | |
| | | //window.setTimeout('loadContent(redirect)', 1000); |
| | | } else { |
| | | jQuery('#pageContent').html(jqXHR.responseText); |
| | | onAfterContentLoad(); |
| | | onAfterContentLoad(target, jQuery('#'+formname).serialize()); |
| | | pageFormChanged = false; |
| | | } |
| | | hideLoadIndicator(); |
| | |
| | | //window.setTimeout('loadContent(redirect)', 1000); |
| | | } else { |
| | | jQuery('#pageContent').html(jqXHR.responseText); |
| | | onAfterContentLoad(); |
| | | onAfterContentLoad(target, jQuery('#'+formname).serialize()); |
| | | pageFormChanged = false; |
| | | } |
| | | hideLoadIndicator(); |
| | |
| | | //jQuery.each(reponseScript, function(idx, val) { eval(val.text); } ); |
| | | |
| | | jQuery('#pageContent').html(jqXHR.responseText); |
| | | onAfterContentLoad(); |
| | | onAfterContentLoad(pagename, (params ? params : null)); |
| | | pageFormChanged = false; |
| | | } |
| | | hideLoadIndicator(); |
| | |
| | | loadContent(parts[1]); |
| | | } else { |
| | | jQuery('#pageContent').html(jqXHR.responseText); |
| | | onAfterContentLoad(); |
| | | onAfterContentLoad('content.php', "s_mod=login&s_pg=index"); |
| | | pageFormChanged = false; |
| | | } |
| | | hideLoadIndicator(); |