Skip to content

Commit

Permalink
use suggestions from domains if found using cb
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Aug 27, 2015
1 parent 15b876c commit d1692e1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pyff/templates/ds.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
$(document).ready(function() {
$("*[data-toggle='popover']").popover({trigger: 'hover', container: 'body'});
$("*[data-toggle='tooltip']").tooltip({trigger: 'hover', container: 'body'});
$('#quickLinks').dsQuickLinks('{{sp}}');
$('.sp').dsRelyingParty('{{sp}}');

var suggestions = false;
$('.sp').dsRelyingParty('{{sp}}', function (entity, i) {
if (entity.domains) {
suggestions = true;
}
});
if (suggestions) {
$('#quickLinks').dsQuickLinks('{{sp}}');
}
$('.idselect').dsSelect({});
jQuery.fn.sort = function() {
return this.pushStack( [].sort.apply( this, arguments ), []);
Expand Down

0 comments on commit d1692e1

Please sign in to comment.