|
|
@ -467,7 +467,7 @@ function init_group_bys() { |
|
|
|
function load_available_values_for_filter(filter_name) { |
|
|
|
function load_available_values_for_filter(filter_name) { |
|
|
|
var select; |
|
|
|
var select; |
|
|
|
select = $('' + filter_name + '_arg_1_val'); |
|
|
|
select = $('' + filter_name + '_arg_1_val'); |
|
|
|
if (select.childElements().length == 0) { |
|
|
|
if (select.readAttribute('data-loading') == "ajax" && select.childElements().length == 0) { |
|
|
|
new Ajax.Updater({ success: select }, '/cost_reports/available_values', { |
|
|
|
new Ajax.Updater({ success: select }, '/cost_reports/available_values', { |
|
|
|
parameters: { filter_name: filter_name }, |
|
|
|
parameters: { filter_name: filter_name }, |
|
|
|
insertion: 'bottom', |
|
|
|
insertion: 'bottom', |
|
|
|