ENDRPrint_12CRelease/web/js/ctrl/msgController.js

42 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2024-08-14 10:58:03 +07:00
// 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() {
// alert("sssss");
$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');