aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r--public/js/gogs.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 7e57a5e148..2db397f062 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -93,6 +93,17 @@ function initRepository() {
$('#add-deploy-key-panel').show();
});
}
+
+ // Pull request
+ if ($('.repository.compare.pull').length > 0) {
+ $('.choose.branch .dropdown').dropdown({
+ action: 'hide',
+ fullTextSearch: true,
+ onNoResults: function () {
+ $('.choose.branch .dropdown .active').addClass('selected');
+ }
+ });
+ }
};
$(document).ready(function () {