From: aditya-nambiar Date: Sun, 15 Jun 2014 21:38:49 +0000 (-0400) Subject: date reimplemented X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=63187ac37423f689acca8f2c3d0c8faaa37c386b;p=civicrm-core.git date reimplemented --- diff --git a/js/angular-crmMailingAB.js b/js/angular-crmMailingAB.js index d812542ed6..b73c274000 100644 --- a/js/angular-crmMailingAB.js +++ b/js/angular-crmMailingAB.js @@ -89,6 +89,7 @@ $scope.ifyes=false; }; + $scope.send_date ="10/4/2004"; }); @@ -228,6 +229,32 @@ }); + crmMailingAB.directive('datepick',function(){ + + return { + scope :{ + foo : '=send_date' + }, + + + restrict: 'AE', + + + link: function(scope,element,attrs){ + + $(element).datepicker({ + onSelect: function(date) { + $(".ui-datepicker a").removeAttr("href"); + scope.foo =date; + console.log(date); + } + }); + } + }; + + + }); + diff --git a/partials/abtesting/helloworld.html b/partials/abtesting/helloworld.html index aa866c35b6..f78c3fb459 100644 --- a/partials/abtesting/helloworld.html +++ b/partials/abtesting/helloworld.html @@ -151,8 +151,10 @@ Now   Later -     +     + +