ENDRPrint/.svn/pristine/8c/8ca55894ef421e3ca424ea09873085b0437365a8.svn-base
2024-08-14 10:33:27 +07:00

41 lines
1.1 KiB
Plaintext

// create the controller and inject Angular's $scope
//scotchApp.registerCtrl('menuController',
// create a message to display in our view
function msgController($scope, $modalInstance, errorForm) {
init();
function init() {
$scope.error = errorForm;
$scope.fFocus = true;
try {
if (isEntry($scope.error.errorFlag)) {
$scope.error.errorFlag = 0;
}
} catch (e) {
}
}
$scope.ok = function () {
//$location.path("/"+data.menuLink);
$modalInstance.close("OK");
};
$scope.cancel = function () {
//$modalInstance.dismiss('cancel');
$modalInstance.close("CANCEL");
};
$scope.doYes = function () {
//$location.path("/"+data.menuLink);
$modalInstance.close(true);
};
$scope.doNo = function () {
//$modalInstance.dismiss('cancel');
$modalInstance.close(false);
};
//////////////////////////////////////////////////////////////////
};
//changeNameController.$inject('$scope', '$q', '$modal', '$log', '$location' , '$window', 'menuFactory' , 'appSharedService');