move save search button to sidebar

This commit is contained in:
r888888888
2017-11-17 16:49:53 -08:00
parent f180e1bbe2
commit c0ddf266fc
7 changed files with 13 additions and 84 deletions

View File

@@ -90,6 +90,7 @@ class ApplicationController < ActionController::Base
flash[:notice] = "This feature isn't available: #{@exception.message}"
respond_to do |fmt|
fmt.html { redirect_to :back }
fmt.js { render nothing: true, status: 501 }
fmt.json { render template: "static/error", status: 501 }
fmt.xml { render template: "static/error", status: 501 }
end

View File

@@ -22,7 +22,7 @@ class SavedSearchesController < ApplicationController
end
def create
@saved_search = saved_searches.create(:query => params[:saved_search_tags], :label_string => params[:saved_search_labels])
@saved_search = saved_searches.create!(:query => params[:saved_search_tags], :label_string => params[:saved_search_labels])
if params[:saved_search_disable_labels]
CurrentUser.disable_categorized_saved_searches = true
CurrentUser.save