mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-23 18:18:31 +08:00
auto-redirect when finish filter branch
This commit is contained in:
@ -97,10 +97,9 @@ function initRepository() {
|
||||
// Pull request
|
||||
if ($('.repository.compare.pull').length > 0) {
|
||||
$('.choose.branch .dropdown').dropdown({
|
||||
action: 'hide',
|
||||
fullTextSearch: true,
|
||||
onNoResults: function () {
|
||||
$('.choose.branch .dropdown .active').addClass('selected');
|
||||
onChange: function (text, value, $choice) {
|
||||
window.location.href = $choice.data('url');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user