anchor.diff:  				}
   			};
   
  +			function onSubmit(event) {
  +				if ($scope.boardFreeWrite.$valid && $scope.content.length >= Jakduk.SummernoteContentsMinSize) {
  +					isSubmitted = true;
  +					$scope.validationGalleries();
  +					$scope.btnSubmit = true;
  +				} else {
  +					isSubmitted = false;
  +					$scope.validationCategory();
  +					$scope.validationSubject();
  +					$scope.validationContent();
  +
  +					$scope.buttonAlert = {"classType":"text-danger", "msg":'<spring:message code="common.msg.need.form.validation"/>'};
  +					event.preventDefault();
  +				}
  +			}
  +
  +			function onDiscard() {
  +				$window.location.href='<c:url value="/board/free/${boardFreeWrite.seq}"/>';
  +			}
  +
   	});
   </script>
   
  
positive.code: 				$scope.uploader.addToQueue(files);
  					};
  
  			$scope.onSubmit = function(event) {
  				if ($scope.boardFreeWrite.$valid && $scope.content.length >= Jakduk.SummernoteContentsMinSize) {
  					$scope.validationGalleries();
  					$scope.btnSubmit = true;
  				} else {
  					$scope.validationCategory();
  					$scope.validationSubject();
  					$scope.validationContent();
  
  					$scope.buttonAlert = {"classType":"text-danger", "msg":'<spring:message code="common.msg.need.form.validation"/>'};
  					event.preventDefault();
  				}
  			};
  
  			$scope.validationCategory = function() {
  				if ($scope.boardFreeWrite.categoryName.$invalid) {
  
negative.code: 			$scope.storedImages = [];
  
  			$window.onbeforeunload = function(e) {
  				if (!isSubmitted && !$scope.boardFreeWrite.$pristine) {
  					(e || window.event).returnValue = '<spring:message code="common.msg.are.you.sure.leave.page"/>';
  					return '<spring:message code="common.msg.are.you.sure.leave.page"/>';
  				}
  