{"size": 627, "ext": "js", "max_stars_repo_path": "assets/js/directives/en_date_picker.js", "max_stars_repo_name": "egorlas/enduro_admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/js/directives/en_date_picker.js", "max_issues_repo_name": "egorlas/enduro_admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/js/directives/en_date_picker.js", "max_forks_repo_name": "egorlas/enduro_admin", "max_forks_repo_forks_event_min_datetime": "2020-05-08T08:56:51.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-08T08:56:51.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 26.125, "max_line_length": 91, "alphanum_fraction": 0.4481658692}
// * ———————————————————————————————————————————————————————— * //
// * 	attaches date picker to datetime control
// * ———————————————————————————————————————————————————————— * //
enduro_admin_app
	.directive('enDatePicker', [function () {
		return {
			restrict: 'A',
			link: function (scope, element, attrs) {

				element = $(element)
				element.pickadate({
					format: 'dddd, dd mmmm, yyyy',
					formatSubmit: 'yyyy-mm-dd',
					today: '',
					clear: '',
					close: '',
					onSet: function () {
						scope.context['$' + scope.terminatedkey + '_value'] = element.siblings('input').val()
					}
				})
			}
		}
	}])
