diff --git a/README.md b/README.md
index 101bf35..d2a9ce8 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ This plugin uses [FontAwesome icons](http://fontawesome.io/)
### Changelog
-* **v.0.6.4** : version field with checkbox display is now supported (Github request #24)
+* **v.0.6.4** : version field with checkbox display is now supported, Target version and Assignee fields are also supported (Github request #24)
* **v 0.6.3** : fixed Github issue #22 : DatepickerFallback raised an error
* **v 0.6.2** : fixed Github issue #22 : long description is now supported (no more 414 errors)
* **v 0.6.1** : fixed Github issue #20
diff --git a/assets/javascripts/issue_dynamic_edit.js b/assets/javascripts/issue_dynamic_edit.js
index 4030ad3..915b4b0 100644
--- a/assets/javascripts/issue_dynamic_edit.js
+++ b/assets/javascripts/issue_dynamic_edit.js
@@ -92,6 +92,38 @@ function initEditFields()
htmlCopy).addClass('value');
}
+ if($('select#issue_assigned_to_id').length > 0)
+ {
+ var htmlCopy = $('select#issue_assigned_to_id').get(0).outerHTML;
+ // 2 technics with simple or double quote (safety first)
+ htmlCopy = htmlCopy.replace(/id="/g, 'id="dynamic_').replace(/id='/g, "id='dynamic_");
+
+ var editHTML = "";
+ editHTML += htmlCopy;
+ editHTML += " ";
+ editHTML += "";
+
+ $('.details .attributes .assigned-to.attribute .value').html('' +
+ $('.details .attributes .assigned-to.attribute .value').html() + ' ' +
+ editHTML);
+ }
+
+ if($('select#issue_fixed_version_id').length > 0)
+ {
+ var htmlCopy = $('select#issue_fixed_version_id').get(0).outerHTML;
+ // 2 technics with simple or double quote (safety first)
+ htmlCopy = htmlCopy.replace(/id="/g, 'id="dynamic_').replace(/id='/g, "id='dynamic_");
+
+ var editHTML = "";
+ editHTML += htmlCopy;
+ editHTML += " ";
+ editHTML += "";
+
+ $('.details .attributes .fixed-version.attribute .value').html('' +
+ $('.details .attributes .fixed-version.attribute .value').html() + ' ' +
+ editHTML);
+ }
+
for(var i = 0 ; i < CF_VALUE_JSON.length ; i++)
{
var info = CF_VALUE_JSON[i].custom_field;
@@ -435,6 +467,24 @@ function initEditFieldListeners()
CKEDITOR.replace('description_textarea', { height: 100 });
}
}
+
+ var dynamic_edit_assigned_to_id = $('body').find('#dynamic_edit_assigned_to_id select');
+
+ if(dynamic_edit_assigned_to_id.length)
+ {
+ dynamic_edit_assigned_to_id.on('change', function(e){
+ issueDynamicUpdate('assigned_to_id', dynamic_edit_assigned_to_id.val(), 'select', 'assigned-to');
+ });
+ }
+
+ var dynamic_edit_fixed_version = $('body').find('#dynamic_edit_fixed_version select');
+
+ if(dynamic_edit_fixed_version.length)
+ {
+ dynamic_edit_fixed_version.on('change', function(e){
+ issueDynamicUpdate('fixed_version_id', dynamic_edit_fixed_version.val(), 'select', 'fixed-version');
+ });
+ }
/* end Description */