Grid edit: add loading icon when loading and posting data

This commit is contained in:
Aris Feryanto 2011-07-22 11:55:25 +08:00
parent 9c06a33982
commit 7d729361bb
3 changed files with 17 additions and 2 deletions

View File

@ -952,8 +952,12 @@
'goto' : 'sql.php',
'submit_type' : 'save'
};
var $editArea = $(g.cEdit).find('.edit_area');
$editArea.addClass('edit_area_posting');
$.post('tbl_replace.php', post_params, function(data) {
$editArea.removeClass('edit_area_posting');
if(data.success == true) {
PMA_ajaxShowMessage(data.message);
if (new_clause != '') {

View File

@ -2488,8 +2488,14 @@ span.mysql-number {
margin: 0.3em 0.2em;
}
.edit_area_loading {
.cEdit .edit_area_loading {
background: #FFF url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>ajax_clock_small.gif) no-repeat center;
height: 10em;
}
.cEdit .edit_area_posting {
background: #FFF url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>ajax_clock_small.gif) no-repeat center top;
padding-top: 1.5em;
}

View File

@ -2899,8 +2899,13 @@ span.mysql-number {
margin: 0.3em 0.2em;
}
.edit_area_loading {
.cEdit .edit_area_loading {
background: #FFF url(./themes/pmahomme/img/ajax_clock_small.gif) no-repeat center;
height: 10em;
}
.cEdit .edit_area_posting {
background: #FFF url(./themes/pmahomme/img/ajax_clock_small.gif) no-repeat center top;
padding-top: 1.5em;
}