aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index ed3198594a..28023e1061 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -959,8 +959,15 @@ function initRepository() {
});
// Pull request
- if ($('.repository.compare.pull').length > 0) {
+ var $repoComparePull = $('.repository.compare.pull');
+ if ($repoComparePull.length > 0) {
initFilterSearchDropdown('.choose.branch .dropdown');
+ // show pull request form
+ $repoComparePull.find('button.show-form').on('click', function(e) {
+ e.preventDefault();
+ $repoComparePull.find('.pullrequest-form').show();
+ $(this).parent().hide();
+ });
}
// Branches