summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-01 08:38:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-01 08:38:21 +0000
commitfb8e348254a24cc3facb238789f555aa70d9857b (patch)
tree9c2c03173c053763c8a4377a86de2e65ad251b73 /public/javascripts
parent3d513cae6ee96d0ce6c10b5068f91a6df10999d3 (diff)
downloadredmine-fb8e348254a24cc3facb238789f555aa70d9857b.tar.gz
redmine-fb8e348254a24cc3facb238789f555aa70d9857b.zip
Set default project version after selecting a different project on the new issue form (#1828).
git-svn-id: http://svn.redmine.org/redmine/trunk@14788 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 610cb60e7..b39b0fead 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -473,10 +473,13 @@ function randomKey(size) {
return key;
}
-function updateIssueFrom(url) {
+function updateIssueFrom(url, el) {
$('#all_attributes input, #all_attributes textarea, #all_attributes select').each(function(){
$(this).data('valuebeforeupdate', $(this).val());
});
+ if (el) {
+ $("#form_update_triggered_by").val($(el).attr('id'));
+ }
return $.ajax({
url: url,
type: 'post',