mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
add spinner when initially loading content by ajax call
This commit is contained in:
parent
76e8d25f87
commit
8410ca9273
|
@ -337,6 +337,7 @@ $(document).ready( function() {
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
url = href;
|
url = href;
|
||||||
|
element.prepend('<div style="position: _absolute; overflow: hidden; background: #f7f7f7; z-index: 1000; height: 200px; width: '+element.width()+'px; opacity: 0.7; display: table;"><div style="display: table-cell;text-align: center; vertical-align: middle; "><img src="../views/bootstrap/images/ajax-loader.gif"></div>');
|
||||||
$.get(url, function(data) {
|
$.get(url, function(data) {
|
||||||
element.html(data);
|
element.html(data);
|
||||||
$(".chzn-select").chosen();
|
$(".chzn-select").chosen();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user