Dong Shin 12.23.2014

  • continue working on Funding Request (AngularJS)
    • got datePicker working
      • need glyphicons – http://getbootstrap.com/getting-started/#download
    • use angular.copy for arrays in modal dialogs to prevent updates to the parent scope!
    • simple directive for confirmation
    • app.directive('ngConfirmClick', [
          function(){
              return {
                  link: function (scope, element, attr) {
                      var msg = attr.ngConfirmClick || "Are you sure?";
                      var clickAction = attr.confirmedClick;
                      element.bind('click',function (event) {
                          if ( window.confirm(msg) ) {
                             scope.$eval(clickAction)
                          }
                      });
                  }
          };
      }])