auto-redirect when finish filter branch

This commit is contained in:
Unknwon 2015-08-08 23:12:23 +08:00
parent dea3a8c6a4
commit 43a87b0caf
2 changed files with 4 additions and 5 deletions

View file

@ -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');
}
});
}