mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
114554395-clear_fields_modification
This commit is contained in:
parent
ffb76c7372
commit
9e9d0a305a
6 changed files with 6 additions and 6 deletions
|
@ -45,7 +45,7 @@ class Admin::AccountActivitiesController < AdminController
|
|||
def set_default_dates
|
||||
params[:q] ||= {}
|
||||
|
||||
if params[:q][:created_at_gteq].nil? && params[:q][:created_at_lteq].nil?
|
||||
if params[:q][:created_at_gteq].nil? && params[:q][:created_at_lteq].nil? && params[:clear_fields].nil?
|
||||
params[:q][:created_at_gteq] = Time.now.strftime("%Y-%m-%d")
|
||||
end
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class Admin::EppLogsController < AdminController
|
|||
def set_default_dates
|
||||
params[:q] ||= {}
|
||||
|
||||
if params[:q][:created_at_gteq].nil? && params[:q][:created_at_lteq].nil?
|
||||
if params[:q][:created_at_gteq].nil? && params[:q][:created_at_lteq].nil? && params[:clear_fields].nil?
|
||||
params[:q][:created_at_gteq] = Time.now.strftime("%Y-%m-%d")
|
||||
end
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class Admin::ReppLogsController < AdminController
|
|||
def set_default_dates
|
||||
params[:q] ||= {}
|
||||
|
||||
if params[:q][:created_at_gteq].nil? && params[:q][:created_at_lteq].nil?
|
||||
if params[:q][:created_at_gteq].nil? && params[:q][:created_at_lteq].nil? && params[:clear_fields].nil?
|
||||
params[:q][:created_at_gteq] = Time.now.strftime("%Y-%m-%d")
|
||||
end
|
||||
|
||||
|
|
|
@ -91,4 +91,4 @@
|
|||
:coffee
|
||||
$(".js-reset-form").on "click", (e) ->
|
||||
e.preventDefault();
|
||||
window.location = "#{admin_account_activities_path}"
|
||||
window.location = "#{admin_account_activities_path(clear_fields: true)}"
|
||||
|
|
|
@ -72,4 +72,4 @@
|
|||
:coffee
|
||||
$(".js-reset-form").on "click", (e) ->
|
||||
e.preventDefault();
|
||||
window.location = "#{admin_epp_logs_path}"
|
||||
window.location = "#{admin_epp_logs_path(clear_fields: true)}"
|
||||
|
|
|
@ -71,4 +71,4 @@
|
|||
:coffee
|
||||
$(".js-reset-form").on "click", (e) ->
|
||||
e.preventDefault();
|
||||
window.location = "#{admin_repp_logs_path}"
|
||||
window.location = "#{admin_repp_logs_path(clear_fields: true)}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue