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: 				}
  			};
  
  	});
  </script>
  
  
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"/>';
  				}
  