fix js bugs
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
$.get("/related_tag.json", {
|
$.get("/related_tag.json", {
|
||||||
"query": Danbooru.RelatedTag.current_tag(),
|
"query": Danbooru.RelatedTag.current_tag(),
|
||||||
"category": category
|
"category": category
|
||||||
}).success(Danbooru.RelatedTag.process_response);
|
}, Danbooru.RelatedTag.process_response);
|
||||||
$("#artist-tags-container").hide();
|
$("#artist-tags-container").hide();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
$("#artist-tags").html("<em>Loading...</em>");
|
$("#artist-tags").html("<em>Loading...</em>");
|
||||||
var url = $("#upload_source,#post_source");
|
var url = $("#upload_source,#post_source");
|
||||||
var referer_url = $("#upload_referer_url");
|
var referer_url = $("#upload_referer_url");
|
||||||
$.get("/artists/finder.json", {"url": url.val(), "referer_url": referer_url.val()}).success(Danbooru.RelatedTag.process_artist);
|
$.get("/artists/finder.json", {"url": url.val(), "referer_url": referer_url.val()}, Danbooru.RelatedTag.process_artist);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ class ApplicationController < ActionController::Base
|
|||||||
def authentication_failed
|
def authentication_failed
|
||||||
respond_to do |fmt|
|
respond_to do |fmt|
|
||||||
fmt.html do
|
fmt.html do
|
||||||
render :text => "authentication failed", :status => 401
|
render :plain => "authentication failed", :status => 401
|
||||||
end
|
end
|
||||||
|
|
||||||
fmt.xml do
|
fmt.xml do
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class LegacyController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def unavailable
|
def unavailable
|
||||||
render :text => "this resource is no longer available", :status => 410
|
render :plain => "this resource is no longer available", :status => 410
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class StaticController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def not_found
|
def not_found
|
||||||
render text: "not found", status: :not_found
|
render plain: "not found", status: :not_found
|
||||||
end
|
end
|
||||||
|
|
||||||
def error
|
def error
|
||||||
|
|||||||
Reference in New Issue
Block a user