removed ajax throbber

This commit is contained in:
albert
2012-01-15 13:38:09 -05:00
parent bb31555035
commit 69f76a1a41
3 changed files with 0 additions and 20 deletions

View File

@@ -35,15 +35,6 @@ $(function() {
Danbooru.Cookie.put('hide_upgrade_account_notice', '1', 7);
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
if (!location.href.match(/terms_of_service/) && Danbooru.Cookie.get("tos") !== "1") {

View File

@@ -35,7 +35,6 @@
Danbooru.Upload.initialize_info = function() {
$("#source-info ul").hide();
$("#fetch-data").click(function(e) {
Danbooru.ajax_start(e.target);
$.get(e.target.href).success(function(data) {
var tag_html = "";
$.each(data.tags, function(i, v) {
@@ -55,8 +54,6 @@
$("#source-info p").hide();
$("#source-info ul").show();
}).complete(function(data) {
Danbooru.ajax_stop(e.target);
});
e.preventDefault();
});

View File

@@ -10,14 +10,6 @@
Danbooru.error = function(msg) {
$('#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) {
var all = true;