|
|
@ -97,10 +97,9 @@ function initRepository() { |
|
|
|
// Pull request
|
|
|
|
// Pull request
|
|
|
|
if ($('.repository.compare.pull').length > 0) { |
|
|
|
if ($('.repository.compare.pull').length > 0) { |
|
|
|
$('.choose.branch .dropdown').dropdown({ |
|
|
|
$('.choose.branch .dropdown').dropdown({ |
|
|
|
action: 'hide', |
|
|
|
|
|
|
|
fullTextSearch: true, |
|
|
|
fullTextSearch: true, |
|
|
|
onNoResults: function () { |
|
|
|
onChange: function (text, value, $choice) { |
|
|
|
$('.choose.branch .dropdown .active').addClass('selected'); |
|
|
|
window.location.href = $choice.data('url'); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|