]> source.dussan.org Git - redmine.git/commitdiff
Select proper tracker and status for when hitting F5 with browsers that preserve...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Mar 2014 11:21:16 +0000 (11:21 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Mar 2014 11:21:16 +0000 (11:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12970 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_form.html.erb

index e968963d29f9cb9df391c675e6db5c8603ae4f29..401789c13a59ced3b0c66540df31a730cbf87eea 100644 (file)
 <% end %>
 
 <% heads_for_wiki_formatter %>
+
+<%= javascript_tag do %>
+$(document).ready(function(){
+  $("#issue_tracker_id, #issue_status_id").each(function(){
+    $(this).val($(this).find("option[selected=selected]").val());
+  });
+});
+<% end %>