mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-10 01:21:32 +00:00
Removed submit_query_form function.
git-svn-id: http://svn.redmine.org/redmine/trunk@13617 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ff0a91d97d
commit
4bfbabfdfa
@ -44,11 +44,11 @@
|
||||
</fieldset>
|
||||
</div>
|
||||
<p class="buttons">
|
||||
<%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %>
|
||||
<%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %>
|
||||
<%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %>
|
||||
<% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %>
|
||||
<%= link_to_function l(:button_save),
|
||||
"$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }'); submit_query_form('query_form')",
|
||||
"$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit()",
|
||||
:class => 'icon icon-save' %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
|
||||
<p class="buttons">
|
||||
<%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %>
|
||||
<%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %>
|
||||
<%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -88,7 +88,7 @@ function initFilters() {
|
||||
toggleMultiSelect($(this).siblings('select'));
|
||||
});
|
||||
$('#filters-table').on('keypress', 'input[type=text]', function(e) {
|
||||
if (e.keyCode == 13) submit_query_form("query_form");
|
||||
if (e.keyCode == 13) $(this).closest('form').submit();
|
||||
});
|
||||
}
|
||||
|
||||
@ -287,10 +287,6 @@ function toggleMultiSelect(el) {
|
||||
}
|
||||
}
|
||||
|
||||
function submit_query_form(id) {
|
||||
$('#'+id).submit();
|
||||
}
|
||||
|
||||
function showTab(name, url) {
|
||||
$('div#content .tab-content').hide();
|
||||
$('div.tabs a').removeClass('selected');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user