'use strict';

angular.module('confRegistrationWebApp')
  .controller('EditAnswerDialogCtrl', function ($scope, $modalInstance) {
    $scope.close = function () {
      $modalInstance.close('');
    };

    $scope.submit = function () {
      $modalInstance.close();
    };
  });
'use strict';

angular.module('confRegistrationWebApp')
  .controller('EditAnswerDialogCtrl', function ($scope, $modalInstance, AnswerCache) {
	$scope.originalAnswer = angular.copy($scope.answer); 
    $scope.close = function () {
      $scope.$parent.answer = angular.copy($scope.originalAnswer);
      $modalInstance.close('');
    };

    $scope.submit = function () {
      $modalInstance.close();
    };
  });
Enable cancel button to revert the answer back to its previous value
Enable cancel button to revert the answer back to its previous value
