ajax-loader for dashboard
This commit is contained in:
parent
8426846d6d
commit
3dc94ba8eb
4 changed files with 27 additions and 2 deletions
11
app/assets/javascripts/loader.js
Normal file
11
app/assets/javascripts/loader.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
var Loader = {
|
||||
img_src: "/assets/ajax-loader.gif",
|
||||
|
||||
html:
|
||||
function(width) {
|
||||
img = $("<img>");
|
||||
img.attr("width", width);
|
||||
img.attr("src", this.img_src);
|
||||
return img;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue