Fixed search drop-down not showing up on Jobs page for small and medium viewports.

This commit is contained in:
Chris Houseknecht 2014-04-25 10:01:17 -04:00
parent dda9cbda2d
commit 68eb8a67bc
2 changed files with 5 additions and 2 deletions

View File

@ -362,7 +362,8 @@ angular.module('JobsHelper', ['Utilities', 'RestServices', 'FormGenerator', 'Job
id: id,
breadCrumbs: false,
scope: scope,
searchSize: 'col-lg-4 col-md-6 col-sm-12 col-xs-12',
searchSize: 'col-lg-4 col-md-6',
listSize: 'col-lg-8 col-md-6',
showSearch: true
});

View File

@ -214,11 +214,13 @@ angular.module('ListGenerator', ['GeneratorHelpers'])
html += "<div class=\"";
if (list.name === 'groups') {
html += "col-lg-12";
} else if (options.searchSize) {
} else if (options.searchSize && !options.listSize) {
// User supplied searchSize, calc the remaining
size = parseInt(options.searchSize.replace(/([A-Z]|[a-z]|\-)/g, ''));
size = (list.searchWidgets) ? list.searchWidgets * size : size;
html += 'col-lg-' + (12 - size);
} else if (options.listSize) {
html += options.listSize;
} else if (options.mode === 'summary') {
html += 'col-lg-6';
} else if (options.id !== undefined) {