diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index 128f48081..eea90c1e7 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -526,7 +526,7 @@ Danbooru.Post.initialize_saved_searches = function() { $("#save-search").click(function() { var input = null; - if (Danbooru.meta("enable-categorized-saved-searches") === "true") { + if (Danbooru.meta("disable-categorized-saved-searches") === "false") { input = window.prompt("Category for this saved search (optional):"); } $.post( diff --git a/app/logical/anonymous_user.rb b/app/logical/anonymous_user.rb index 5390c6f94..a95e1c963 100644 --- a/app/logical/anonymous_user.rb +++ b/app/logical/anonymous_user.rb @@ -237,7 +237,7 @@ class AnonymousUser false end - def enable_categorized_saved_searches? + def disable_categorized_saved_searches? false end diff --git a/app/models/user.rb b/app/models/user.rb index e2dcd41f5..9e61f6dac 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -32,14 +32,14 @@ class User < ActiveRecord::Base has_saved_searches can_approve_posts can_upload_free - enable_categorized_saved_searches + disable_categorized_saved_searches ) include Danbooru::HasBitFlags has_bit_flags BOOLEAN_ATTRIBUTES, :field => "bit_prefs" attr_accessor :password, :old_password - attr_accessible :dmail_filter_attributes, :enable_privacy_mode, :enable_post_navigation, :new_post_navigation_layout, :password, :old_password, :password_confirmation, :password_hash, :email, :last_logged_in_at, :last_forum_read_at, :has_mail, :receive_email_notifications, :comment_threshold, :always_resize_images, :favorite_tags, :blacklisted_tags, :name, :ip_addr, :time_zone, :default_image_size, :enable_sequential_post_navigation, :per_page, :hide_deleted_posts, :style_usernames, :enable_auto_complete, :custom_style, :show_deleted_children, :enable_categorized_saved_searches, :as => [:moderator, :janitor, :gold, :member, :anonymous, :default, :builder, :admin] + attr_accessible :dmail_filter_attributes, :enable_privacy_mode, :enable_post_navigation, :new_post_navigation_layout, :password, :old_password, :password_confirmation, :password_hash, :email, :last_logged_in_at, :last_forum_read_at, :has_mail, :receive_email_notifications, :comment_threshold, :always_resize_images, :favorite_tags, :blacklisted_tags, :name, :ip_addr, :time_zone, :default_image_size, :enable_sequential_post_navigation, :per_page, :hide_deleted_posts, :style_usernames, :enable_auto_complete, :custom_style, :show_deleted_children, :disable_categorized_saved_searches, :as => [:moderator, :janitor, :gold, :member, :anonymous, :default, :builder, :admin] attr_accessible :level, :as => :admin validates_length_of :name, :within => 2..100, :on => :create validates_format_of :name, :with => /\A[^\s:]+\Z/, :on => :create, :message => "cannot have whitespace or colons" diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index 5cd725970..97dc2bf9b 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -21,7 +21,7 @@ - + <%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %> <%= stylesheet_link_tag "application", :media => "screen" %> <% if CurrentUser.user.custom_style.present? %> diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 09e84bb8a..c748f570f 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -68,7 +68,7 @@ <%= f.input :enable_auto_complete, :as => :select, :collection => [["Yes", "true"], ["No", "false"]], :include_blank => false %> - <%= f.input :enable_categorized_saved_searches, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %> + <%= f.input :disable_categorized_saved_searches, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>