@@ -1,6 +1,6 | |||||
1 | <h2><%= l(:label_query) %></h2> |
|
1 | <h2><%= l(:label_query) %></h2> | |
2 |
|
2 | |||
3 |
<%= form_tag(query_path(@query), : |
|
3 | <%= form_tag(query_path(@query), :method => :put) do %> | |
4 | <%= render :partial => 'form', :locals => {:query => @query} %> |
|
4 | <%= render :partial => 'form', :locals => {:query => @query} %> | |
5 | <%= submit_tag l(:button_save) %> |
|
5 | <%= submit_tag l(:button_save) %> | |
6 | <% end %> |
|
6 | <% end %> |
@@ -1,6 +1,6 | |||||
1 | <h2><%= l(:label_query_new) %></h2> |
|
1 | <h2><%= l(:label_query_new) %></h2> | |
2 |
|
2 | |||
3 |
<%= form_tag(@project ? project_queries_path(@project) : queries_path |
|
3 | <%= form_tag(@project ? project_queries_path(@project) : queries_path) do %> | |
4 | <%= render :partial => 'form', :locals => {:query => @query} %> |
|
4 | <%= render :partial => 'form', :locals => {:query => @query} %> | |
5 | <%= submit_tag l(:button_save) %> |
|
5 | <%= submit_tag l(:button_save) %> | |
6 | <% end %> |
|
6 | <% end %> |
@@ -1,4 +1,4 | |||||
1 |
<%= form_tag({:action => 'edit', :tab => 'issues'} |
|
1 | <%= form_tag({:action => 'edit', :tab => 'issues'}) do %> | |
2 |
|
2 | |||
3 | <div class="box tabular settings"> |
|
3 | <div class="box tabular settings"> | |
4 | <p><%= setting_check_box :cross_project_issue_relations %></p> |
|
4 | <p><%= setting_check_box :cross_project_issue_relations %></p> |
@@ -288,7 +288,6 function toggleMultiSelect(el) { | |||||
288 | } |
|
288 | } | |
289 |
|
289 | |||
290 | function submit_query_form(id) { |
|
290 | function submit_query_form(id) { | |
291 | selectAllOptions("selected_columns"); |
|
|||
292 | $('#'+id).submit(); |
|
291 | $('#'+id).submit(); | |
293 | } |
|
292 | } | |
294 |
|
293 |
@@ -22,6 +22,8 function moveOptionBottom(theSel) { | |||||
22 | $(theSel).find('option:selected').detach().appendTo($(theSel)); |
|
22 | $(theSel).find('option:selected').detach().appendTo($(theSel)); | |
23 | } |
|
23 | } | |
24 |
|
24 | |||
25 | function selectAllOptions(id) { |
|
25 | $(document).ready(function(){ | |
26 | $('#'+id).find('option').prop('selected', true); |
|
26 | $('.query-columns').closest('form').submit(function(){ | |
27 | } |
|
27 | $('#selected_columns option').prop('selected', true); | |
|
28 | }); | |||
|
29 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now