automatically set status to "resolved (to deploy)" when typing a commit id
This commit is contained in:
parent
cfcdac07d0
commit
8d147a610b
|
@ -99,6 +99,14 @@ $(function() {
|
|||
var target = $('#attachments_fields')[0];
|
||||
observer.observe(target, {attributes: false, childList: true, characterData: false});
|
||||
}
|
||||
$('textarea#issue_notes').on('keyup change', function() {
|
||||
if ($(this).val().indexOf('<pre>\ncommit ') != -1) {
|
||||
var issue_status = $('#issue_status_id').val();
|
||||
if (issue_status == '1' || issue_status == '2') {
|
||||
$('#issue_status_id').val('3');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if ($('.administration').length == 0) {
|
||||
/* fake access control */
|
||||
|
|
Loading…
Reference in New Issue