mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-10 15:36:49 +02:00
Added custom confirm modal dialog box
This commit is contained in:
parent
0320185ce5
commit
6ad493a079
31 changed files with 909 additions and 41 deletions
|
@ -25,7 +25,7 @@ angular.module('rallly')
|
|||
restrict : 'A',
|
||||
require : 'ngModel',
|
||||
link : function(scope, el, attrs, ngModel){
|
||||
$(el).datepicker({
|
||||
angular.element(el).datepicker({
|
||||
multidate : true,
|
||||
todayHighlight: true,
|
||||
format : 'dd/mm/yyyy'
|
||||
|
@ -40,10 +40,10 @@ angular.module('rallly')
|
|||
});
|
||||
|
||||
scope.clearDates = function(){
|
||||
$(el).datepicker('setDate', null)
|
||||
angular.element(el).datepicker('setDate', null)
|
||||
};
|
||||
scope.unsetDate = function(date){
|
||||
$(el).datepicker('setDates', scope.event.dates.filter(function(el){
|
||||
angular.element(el).datepicker('setDates', scope.event.dates.filter(function(el){
|
||||
return el != date;
|
||||
}));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue