From b13370bf0d6f4fffe82591f7d0613f26581dbcee Mon Sep 17 00:00:00 2001 From: kevgliss Date: Thu, 19 May 2016 09:04:50 -0700 Subject: [PATCH] Making dropdowns look a bit better. (#322) * Making dropdowns look a bit better. * Pleasing Lint. --- .../angular/authorities/authority/authority.js | 17 +++++++++++++++++ .../certificates/certificate/certificate.js | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/lemur/static/app/angular/authorities/authority/authority.js b/lemur/static/app/angular/authorities/authority/authority.js index 3b6ec544..bf0bfc61 100644 --- a/lemur/static/app/angular/authorities/authority/authority.js +++ b/lemur/static/app/angular/authorities/authority/authority.js @@ -53,6 +53,23 @@ angular.module('lemur') $scope.authority.authority = authority; } }); + }, + render: { + option: function(item) { + return '
' + + '
' + + '' + item.name + ' ' + item.owner + '' + + '
' + + '
' + + '' + item.description + '' + + '
' + + '
'; + } + }, + load: function (value) { + AuthorityService.findAuthorityByName(value).then(function (authorities) { + $scope.authorities = authorities; + }); } }; diff --git a/lemur/static/app/angular/certificates/certificate/certificate.js b/lemur/static/app/angular/certificates/certificate/certificate.js index a230b5db..d3d3c8a2 100644 --- a/lemur/static/app/angular/certificates/certificate/certificate.js +++ b/lemur/static/app/angular/certificates/certificate/certificate.js @@ -111,6 +111,23 @@ angular.module('lemur') $scope.certificate.authority = authority; } }); + }, + render: { + option: function(item) { + return '
' + + '
' + + '' + item.name + ' ' + item.owner + '' + + '
' + + '
' + + '' + item.description + '' + + '
' + + '
'; + } + }, + load: function (value) { + AuthorityService.findAuthorityByName(value).then(function (authorities) { + $scope.authorities = authorities; + }); } };