1(function (app) { 2 app.directive('datepicker', function () { 3 return { 4 restrict: 'A', 5 require: 'ngModel', 6 link: function (scope, element, attrs, ngModelCtrl) { 7 $(function () { 8 element.datepicker({ 9 dateFormat: 'mm/dd/yy', 10 changeMonth: true, 11 changeYear: true, 12 maxDate: '0', 13 yearRange: "1915:+nn", 14 onChangeMonthYear:function(y, m, i){ 15 var d = i.selectedDay; 16 $(this).datepicker('setDate', new Date(y, m-1, d)); 17 }, 18 onSelect: function (date) { 19 scope.$apply(function () { 20 ngModelCtrl.$setViewValue(date); 21 22 }); 23 } 24 }); 25 }); 26 } 27 } 28 }); 29}(angular.module(appName)));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.