This commit is contained in:
albert
2013-03-02 22:13:55 -05:00
parent f7a4b2e3fa
commit b874f2d73f
2 changed files with 5 additions and 2 deletions

View File

@@ -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() {

View File

@@ -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?