removed ajax throbber
This commit is contained in:
@@ -35,15 +35,6 @@ $(function() {
|
|||||||
Danbooru.Cookie.put('hide_upgrade_account_notice', '1', 7);
|
Danbooru.Cookie.put('hide_upgrade_account_notice', '1', 7);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Ajax links
|
|
||||||
$("a[data-remote=true]").click(function(e) {
|
|
||||||
Danbooru.ajax_start(e.target);
|
|
||||||
})
|
|
||||||
|
|
||||||
$("a[data-remote=true]").ajaxComplete(function(e) {
|
|
||||||
Danbooru.ajax_stop(e.target);
|
|
||||||
})
|
|
||||||
|
|
||||||
// TOS link
|
// TOS link
|
||||||
if (!location.href.match(/terms_of_service/) && Danbooru.Cookie.get("tos") !== "1") {
|
if (!location.href.match(/terms_of_service/) && Danbooru.Cookie.get("tos") !== "1") {
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
Danbooru.Upload.initialize_info = function() {
|
Danbooru.Upload.initialize_info = function() {
|
||||||
$("#source-info ul").hide();
|
$("#source-info ul").hide();
|
||||||
$("#fetch-data").click(function(e) {
|
$("#fetch-data").click(function(e) {
|
||||||
Danbooru.ajax_start(e.target);
|
|
||||||
$.get(e.target.href).success(function(data) {
|
$.get(e.target.href).success(function(data) {
|
||||||
var tag_html = "";
|
var tag_html = "";
|
||||||
$.each(data.tags, function(i, v) {
|
$.each(data.tags, function(i, v) {
|
||||||
@@ -55,8 +54,6 @@
|
|||||||
|
|
||||||
$("#source-info p").hide();
|
$("#source-info p").hide();
|
||||||
$("#source-info ul").show();
|
$("#source-info ul").show();
|
||||||
}).complete(function(data) {
|
|
||||||
Danbooru.ajax_stop(e.target);
|
|
||||||
});
|
});
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -10,14 +10,6 @@
|
|||||||
Danbooru.error = function(msg) {
|
Danbooru.error = function(msg) {
|
||||||
$('#notice').html(msg).removeClass("ui-state-highlight").addClass("ui-state-error").fadeIn("fast");
|
$('#notice').html(msg).removeClass("ui-state-highlight").addClass("ui-state-error").fadeIn("fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
Danbooru.is_subset = function(array, subarray) {
|
Danbooru.is_subset = function(array, subarray) {
|
||||||
var all = true;
|
var all = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user