2012-05-31 17:56:27 +01:00
|
|
|
$(document).ready(function() {
|
2012-07-09 19:41:39 +01:00
|
|
|
$('#pull_request_base_project').on('autocompleteselect', function(event, data){
|
|
|
|
$('input#base_refs').autocomplete('option', 'source', data.item.refs);
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#pull_request_base_project, input#base_refs, input#head_refs').on('autocompleteselect', function(event, data){
|
|
|
|
var tmp = $('#update_action').val();
|
|
|
|
$('#new_pull_request').attr('action', $('#update_action').val());
|
|
|
|
$('#update_pull').fadeIn('fast');
|
2012-07-10 17:07:51 +01:00
|
|
|
$('#create_pull').fadeOut('fast');
|
2012-07-09 19:41:39 +01:00
|
|
|
});
|
2012-05-31 17:56:27 +01:00
|
|
|
});
|