JQuery in, Prototype/Scriptaculous out (#11445).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10068 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
387836f8aa
commit
6a2ca5e034
122 files changed
+1431
-10962
No files matched your search
@@ -5,8 +5,7 @@
|
||||
select_tag('status_by',
|
||||
status_by_options_for_select(criteria),
|
||||
:id => 'status_by_select',
|
||||
:onchange => remote_function(:url => status_by_version_path(version),
|
||||
:with => "Form.serialize('status_by_form')"))).html_safe %>
|
||||
:data => {:remote => true, :method => 'post', :url => status_by_version_path(version)})).html_safe %>
|
||||
</legend>
|
||||
<% if counts.empty? %>
|
||||
<p><em><%= l(:label_no_data) %></em></p>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
hideModal();
|
||||
<% select = content_tag('select', content_tag('option') + version_options_for_select(@project.shared_versions.open, @version), :id => 'issue_fixed_version_id', :name => 'issue[fixed_version_id]') %>
|
||||
Element.replace('issue_fixed_version_id', '<%= escape_javascript(select) %>');
|
||||
$('#issue_fixed_version_id').replaceWith('<%= escape_javascript(select) %>');
|
||||
@@ -54,7 +54,7 @@
|
||||
<% if @completed_versions.present? %>
|
||||
<p>
|
||||
<%= link_to_function l(:label_completed_versions),
|
||||
'Element.toggleClassName("toggle-completed-versions", "collapsed"); Element.toggle("completed-versions")',
|
||||
'$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
|
||||
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br />
|
||||
<span id="completed-versions" style="display:none;">
|
||||
<%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n").html_safe %>
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
Element.update('ajax-modal', '<%= escape_javascript(render :partial => 'versions/new_modal') %>');
|
||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'versions/new_modal') %>');
|
||||
showModal('ajax-modal', '600px');
|
||||
Form.Element.focus('version_name');
|
||||
@@ -1 +1 @@
|
||||
Element.update('status_by', '<%= escape_javascript(render_issue_status_by(@version, params[:status_by])) %>');
|
||||
$('#status_by').html('<%= escape_javascript(render_issue_status_by(@version, params[:status_by])) %>');
|
||||
Reference in new issue
Block a user