Fix in tables
This commit is contained in:
parent
353a80d843
commit
a915e7be5a
1 changed files with 11 additions and 3 deletions
14
ajax_list.js
14
ajax_list.js
|
|
@ -8,7 +8,7 @@ $=jQuery;
|
||||||
|
|
||||||
$.fn.ajaxList = function (name_list, options)
|
$.fn.ajaxList = function (name_list, options)
|
||||||
{
|
{
|
||||||
if(!options.hasOwnProperty(loading)) {
|
if(options.hasOwnProperty("loading")) {
|
||||||
|
|
||||||
$(loading).show();
|
$(loading).show();
|
||||||
|
|
||||||
|
|
@ -34,7 +34,11 @@ $=jQuery;
|
||||||
|
|
||||||
$(this).children('#'+name_list).append(list_tr);
|
$(this).children('#'+name_list).append(list_tr);
|
||||||
|
|
||||||
$(loading).hide();
|
if(options.hasOwnProperty("loading")) {
|
||||||
|
|
||||||
|
$(loading).hide();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
@ -222,7 +226,11 @@ $=jQuery;
|
||||||
|
|
||||||
this.updateAjax(name_list, options, 0, '');
|
this.updateAjax(name_list, options, 0, '');
|
||||||
|
|
||||||
$(loading).hide();
|
if(options.hasOwnProperty("loading")) {
|
||||||
|
|
||||||
|
$(loading).hide();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue