New Features

- added notifications
- added toggle switches
- added delete feature
- added email verification
This commit is contained in:
Luke Vella 2015-01-26 13:11:48 +01:00
parent e61ef151f6
commit 1b20a11bba
91 changed files with 6859 additions and 2756 deletions

View file

@ -0,0 +1,27 @@
angular.module('rallly')
.directive('dropdown', function($document){
return {
restrict : 'A',
link : function(scope, el, attrs){
el.addClass('dropdown');
scope.open = false;
var clickHandler = function(event){
var isClickedElementChildOfPopup = el.find(event.target).length > 0;
if (isClickedElementChildOfPopup) return;
scope.toggle();
}
scope.toggle = function(){
scope.open = !scope.open;
if (scope.open){
el.addClass('open');
$document.bind('click', clickHandler);
} else {
el.removeClass('open');
$document.unbind('click', clickHandler);
}
}
}
}
});