Grid edit: add loading icon when loading and posting data
This commit is contained in:
parent
9c06a33982
commit
7d729361bb
@ -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 != '') {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user