Fixed notifications selector

This commit is contained in:
Fergal Moran
2015-12-31 23:09:19 +00:00
parent 9dfb4ff54b
commit 7d2f1baf61

View File

@@ -25,20 +25,8 @@ angular.module('dssWebApp')
return x.accepted_date === null;
}).length;
});
$('#notifications').data('open', false);
$('#notifications-button').click(function() {
if($('#notifications').data('open')) {
$('#notifications').data('open', false);
markNotifications(scope);
} else
$('#notifications').data('open', true);
});
$(document).click(function() {
if($('#notifications').data('open')) {
$('#notifications').data('open', false);
markNotifications(scope);
}
$('#navbar-notification-dropdown').on('hide.bs.dropdown', function(){
markNotifications(scope);
});
}
}