This commit is contained in:
Kyle Hornberg
2014-02-21 15:10:45 -06:00
parent 11f99a7206
commit e7d2ee8000
2 changed files with 23 additions and 8 deletions

View File

@@ -42,7 +42,16 @@ $(function () {
paginate();
});
var listOptions = {
valueNames: ['name']
};
var repoList = new List('repositories', listOptions);
if ($('#repositories').length) {
var listOptions = {
valueNames: ['name']
};
var repoList = new List('repositories', listOptions);
}
if ($('#branchList').length) {
var listBranchOptions = {
valueNames: ['item']
};
var repoList = new List('branchList', listBranchOptions);
}