replace tabs to spaces at app/views/queries/_filters.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7384 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
497887e121
commit
3c1a51b486
|
@ -30,22 +30,22 @@ function toggle_filter(field) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function enableValues(field, indexes) {
|
function enableValues(field, indexes) {
|
||||||
var f = $$(".values_" + field);
|
var f = $$(".values_" + field);
|
||||||
for(var i=0;i<f.length;i++) {
|
for(var i=0;i<f.length;i++) {
|
||||||
if (indexes.include(i)) {
|
if (indexes.include(i)) {
|
||||||
Form.Element.enable(f[i]);
|
Form.Element.enable(f[i]);
|
||||||
f[i].up('span').show();
|
f[i].up('span').show();
|
||||||
} else {
|
} else {
|
||||||
f[i].value = '';
|
f[i].value = '';
|
||||||
Form.Element.disable(f[i]);
|
Form.Element.disable(f[i]);
|
||||||
f[i].up('span').hide();
|
f[i].up('span').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (indexes.length > 0) {
|
if (indexes.length > 0) {
|
||||||
Element.show("div_values_" + field);
|
Element.show("div_values_" + field);
|
||||||
} else {
|
} else {
|
||||||
Element.hide("div_values_" + field);
|
Element.hide("div_values_" + field);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle_operator(field) {
|
function toggle_operator(field) {
|
||||||
|
@ -121,7 +121,7 @@ Event.observe(document,"dom:loaded", apply_filters_observer);
|
||||||
<% case options[:type]
|
<% case options[:type]
|
||||||
when :list, :list_optional, :list_status, :list_subprojects %>
|
when :list, :list_optional, :list_status, :list_subprojects %>
|
||||||
<span class="span_values_<%= field %>">
|
<span class="span_values_<%= field %>">
|
||||||
<%= select_tag "v[#{field}][]", options_for_select(options[:values], query.values_for(field)), :class => "values_#{field}", :id => "values_#{field}_1", :multiple => (query.values_for(field) && query.values_for(field).length > 1) %>
|
<%= select_tag "v[#{field}][]", options_for_select(options[:values], query.values_for(field)), :class => "values_#{field}", :id => "values_#{field}_1", :multiple => (query.values_for(field) && query.values_for(field).length > 1) %>
|
||||||
<%= link_to_function image_tag('bullet_toggle_plus.png'), "toggle_multi_select('values_#{field}_1');" %>
|
<%= link_to_function image_tag('bullet_toggle_plus.png'), "toggle_multi_select('values_#{field}_1');" %>
|
||||||
</span>
|
</span>
|
||||||
<% when :date, :date_past %>
|
<% when :date, :date_past %>
|
||||||
|
@ -144,8 +144,8 @@ Event.observe(document,"dom:loaded", apply_filters_observer);
|
||||||
<td class="add-filter">
|
<td class="add-filter">
|
||||||
<%= label_tag('add_filter_select', l(:label_filter_add)) %>
|
<%= label_tag('add_filter_select', l(:label_filter_add)) %>
|
||||||
<%= select_tag 'add_filter_select', options_for_select([["",""]] + query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.collect{|field| [ field[1][:name] || l(("field_"+field[0].to_s.gsub(/_id$/, "")).to_sym), field[0]] unless query.has_filter?(field[0])}.compact),
|
<%= select_tag 'add_filter_select', options_for_select([["",""]] + query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.collect{|field| [ field[1][:name] || l(("field_"+field[0].to_s.gsub(/_id$/, "")).to_sym), field[0]] unless query.has_filter?(field[0])}.compact),
|
||||||
:onchange => "add_filter();",
|
:onchange => "add_filter();",
|
||||||
:name => nil %>
|
:name => nil %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue