anchor.diff:  
   	angular.module("jakdukApp", ["summernote", "angularFileUpload", "angular-ladda"])
   		.controller('FreeWriteCtrl', function($scope, $http, $window, FileUploader) {
  +			var isSubmitted;
  +
  +			$scope.onDiscard = onDiscard;
  +
   			$scope.categoryAlert = {};
   			$scope.subjectAlert = {};
   			$scope.contentAlert = {};
  
positive.code: 	<hr class="padding-5" ng-show="storedImages.length > 0 || uploader.queue.length > 0"/>
  	
  		<div class="form-group">
  			<button type="submit" class="btn-u rounded ladda-button"
  			ladda="btnSubmit" data-style="expand-right">
  				<span class="glyphicon glyphicon-upload"></span> <spring:message code="common.button.write"/>
  			</button>		
  			<button type="button" class="btn-u btn-u-default rounded" onclick="location.href='<c:url value="/board/free/${boardFreeWrite.seq}"/>'">
  				<span class="glyphicon glyphicon-ban-circle"></span> <spring:message code="common.button.cancel"/>
  			</button>	
  			<div>
  
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"/>';
  				}
  