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)
                          }
                      });
                  }
          };
      }])
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: