Skip to content
Snippets Groups Projects
Commit f8b58880 authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

rewrite loader.js in coffeescript

parent 08d9421d
No related branches found
No related tags found
No related merge requests found
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;
}
}
Loader =
html: (width) ->
$('<img>').attr src: '/assets/ajax-loader.gif', width: width
window.Loader = Loader
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment