mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-27 03:21:49 +01:00
Nice progressbar for loading
This commit is contained in:
@@ -69,7 +69,11 @@ function lazyLoad(el){
|
|||||||
$el.attr("data-lazyload-url", newUrl);
|
$el.attr("data-lazyload-url", newUrl);
|
||||||
}
|
}
|
||||||
if(url){
|
if(url){
|
||||||
$el.html("Loading");
|
$el.html($('<div class="progress">')
|
||||||
|
.append(
|
||||||
|
$('<div class="progress-bar progress-bar-striped active" role="progressbar" style="width: 100%;">Loading…</div>')
|
||||||
|
)
|
||||||
|
);
|
||||||
$el.load(url, function( response, status, xhr ) {
|
$el.load(url, function( response, status, xhr ) {
|
||||||
if ( status == "error" ) {
|
if ( status == "error" ) {
|
||||||
$el.html("Error when loading data");
|
$el.html("Error when loading data");
|
||||||
|
|||||||
Reference in New Issue
Block a user