moved stylesheets and javascripts to assets
This commit is contained in:
21
app/assets/javascripts/utility.js
Normal file
21
app/assets/javascripts/utility.js
Normal file
@@ -0,0 +1,21 @@
|
||||
(function() {
|
||||
Danbooru.meta = function(key) {
|
||||
return $("meta[name=" + key + "]").attr("content");
|
||||
}
|
||||
|
||||
Danbooru.j_alert = function(title, msg) {
|
||||
$('<div title="' + title + '"></div>').html(msg).dialog();
|
||||
}
|
||||
|
||||
Danbooru.j_error = function(msg) {
|
||||
this.j_alert("Error", msg);
|
||||
}
|
||||
|
||||
Danbooru.ajax_start = function(target) {
|
||||
$(target).after(' <img src="/images/wait.gif" width="15" height="5" class="wait">');
|
||||
}
|
||||
|
||||
Danbooru.ajax_stop = function(target) {
|
||||
$(target).next("img.wait").remove();
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user