41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
|
// 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');
|