Show loading message on back action with html5 history API

Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
This commit is contained in:
Nisarg Jhaveri 2015-07-12 14:35:46 +05:30
parent 79f7f5c9fc
commit 0eebab6bef

View File

@ -706,6 +706,7 @@ $(function () {
if (history && history.pushState) {
$(window).on('popstate', function(event) {
if (event && event.originalEvent.state && event.originalEvent.state.menu) {
AJAX.$msgbox = PMA_ajaxShowMessage();
var params = 'ajax_request=true&ajax_page_request=true';
$.get(location.href, params, AJAX.responseHandler);
//TODO: Check if sometimes menu is not retrieved from server,