diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-15 11:21:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-15 11:21:16 +0000 |
commit | 218e5f40a15932206cf243e83fbdcfad5cc38cd6 (patch) | |
tree | 19256b660f6eb7671875ea5abc702605c66ce837 | |
parent | 995ae083cd53696297d6adecf5a209d736ab4166 (diff) | |
download | redmine-218e5f40a15932206cf243e83fbdcfad5cc38cd6.tar.gz redmine-218e5f40a15932206cf243e83fbdcfad5cc38cd6.zip |
Select proper tracker and status for when hitting F5 with browsers that preserve select values on reload, eg. Firefox (#16259).
git-svn-id: http://svn.redmine.org/redmine/trunk@12970 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/_form.html.erb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index e968963d2..401789c13 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -45,3 +45,11 @@ <% 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 %> |