add spinner when initially loading content by ajax call

This commit is contained in:
Uwe Steinmann 2016-07-27 21:02:49 +02:00
parent 76e8d25f87
commit 8410ca9273

View File

@ -337,6 +337,7 @@ $(document).ready( function() {
}
} else
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) {
element.html(data);
$(".chzn-select").chosen();