diff options
author | Unknwon <u@gogs.io> | 2015-12-09 01:42:26 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-09 01:42:26 -0500 |
commit | eec06fb3df7a9dc30f758bb1a100b5f1e8e01ab9 (patch) | |
tree | 88a2cd2aaf1b40456e91d083d7223e52f61a802e /public/js | |
parent | a576224d0ea0a6a48207002229ae38937bd038a3 (diff) | |
parent | df05134494ccc4cf53ff816a6457c7e21a69f730 (diff) |
Merge pull request #2126 from angus-g/fixes/commits-branches
Dropdown on commits page to choose branch #1846
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 be17b8c8..427280db 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 +}); |