fixes #699
This commit is contained in:
@@ -14,7 +14,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Upload.initialize_enter_on_tags = function() {
|
Danbooru.Upload.initialize_enter_on_tags = function() {
|
||||||
$("#upload_tag_string,#post_tag_string").bind("keydown.return", function() {$("#form").submit();});
|
$("#upload_tag_string,#post_tag_string").bind("keydown.return", function(e) {
|
||||||
|
$("#form").submit();
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Upload.initialize_similar = function() {
|
Danbooru.Upload.initialize_similar = function() {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class Pool < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if params[:description_matches].present?
|
if params[:description_matches].present?
|
||||||
q = q.where("description like ? escape E'\\\\'", params[:description_matches].to_escaped_for_sql_like)
|
q = q.where("description like ? escape E'\\\\'", "%" + params[:description_matches].to_escaped_for_sql_like + "%")
|
||||||
end
|
end
|
||||||
|
|
||||||
if params[:creator_name].present?
|
if params[:creator_name].present?
|
||||||
|
|||||||
Reference in New Issue
Block a user