fix for broken recent-notifications popover

This commit is contained in:
Jared Tabor
2016-06-17 17:09:55 -07:00
parent 3115dd4fee
commit de1d605c28
2 changed files with 35 additions and 33 deletions

View File

@@ -109,7 +109,8 @@ export default
} }
scope.showSummary = function(event, id) { scope.showSummary = function(event, id) {
Wait('start');
setTimeout(function(){
if (!Empty(id)) { if (!Empty(id)) {
var recent_notifications, var recent_notifications,
html, title = "Recent Notifications"; html, title = "Recent Notifications";
@@ -144,6 +145,7 @@ export default
} }
attachElem(event, html, title); attachElem(event, html, title);
} }
}, 100);
}; };
scope.testNotification = function(){ scope.testNotification = function(){

View File

@@ -27,7 +27,7 @@ export default function(){
icon: "{{ 'icon-job-' + notification_template.status }}", icon: "{{ 'icon-job-' + notification_template.status }}",
awToolTip: "Click for recent notifications", awToolTip: "Click for recent notifications",
awTipPlacement: "right", awTipPlacement: "right",
ngClick: "showSummary($event, notification_templates.id)", ngClick: "showSummary($event, notification_template.id)",
ngClass: "" ngClass: ""
}] }]
}, },