xcmailr-webapp/src/main/java/assets/js/controllers.js
/*
 * Controller to handle the "set new date"-dialog
 */
Controller to handle the "set new date"-dialog
Controller to handle the " set new date " - dialog
function NewDateController($scope, $modalInstance, currentBoxes, contextPath) {
	$scope.contextPath = contextPath;
	$scope.currentBoxes = currentBoxes;
	$scope.close = function(newDateTime) {
		if ($('#chkUnlimitedNew').is(':checked')) {
			newDateTime = "0";
			$modalInstance.close(newDateTime);
			return;
		}
		newDateTime = $('#datetimepickerNew').data("DateTimePicker").getDate()
				.format("YYYY-MM-DD HH:mm");
		$modalInstance.close(newDateTime);
	};
	$scope.dismiss = function() { 
		$modalInstance.close();
	};
}
function NewDateController ( $scope , $modalInstance , currentBoxes , contextPath ) { $scope . contextPath = contextPath ; $scope . currentBoxes = currentBoxes ; $scope . close = function ( newDateTime ) { if ( $ ( '#chkUnlimitedNew' ) . is ( ':checked' ) ) { newDateTime = "0" ; $modalInstance . close ( newDateTime ) ; return ; } newDateTime = $ ( '#datetimepickerNew' ) . data ( "DateTimePicker" ) . getDate ( ) . format ( "YYYY-MM-DD HH:mm" ) ; $modalInstance . close ( newDateTime ) ; } ; $scope . dismiss = function ( ) { $modalInstance . close ( ) ; } ; }
Controller to handle the "set new date"-dialog
Controller to handle the " set new date " - dialog
// ignore changes, just close the dialog