diff options
author | Angus Gibson <angus.gibson@anu.edu.au> | 2015-12-09 16:14:54 +1100 |
---|---|---|
committer | Angus Gibson <angus.gibson@anu.edu.au> | 2015-12-09 16:37:04 +1100 |
commit | 9bd3ebe20708b3d61f1cab8daeeffe8748f93852 (patch) | |
tree | 5a663d68003df445a5ac6a821275530ebbf56cf3 /public/js | |
parent | a576224d0ea0a6a48207002229ae38937bd038a3 (diff) | |
download | gitea-9bd3ebe20708b3d61f1cab8daeeffe8748f93852.tar.gz gitea-9bd3ebe20708b3d61f1cab8daeeffe8748f93852.zip |
Dropdown on commits page to choose branch #1846
I've mostly duplicated the dropdown code from repo/home.tmpl, which
basically only required a change to the URL. This could probably be
broken out into something more modular.
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index be17b8c8f2..427280db54 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -218,8 +218,9 @@ function initRepository() { }); } - // File list - if ($('.repository.file.list').length > 0) { + // File list and commits + if ($('.repository.file.list').length > 0 || + ('.repository.commits').length > 0) { initFilterSearchDropdown('.choose.reference .dropdown'); $('.reference.column').click(function () { @@ -1036,4 +1037,4 @@ $(window).load(function () { } }).trigger('hashchange'); } -});
\ No newline at end of file +}); |