Yangman - changed event strings to constants
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / controllers / yang-form.controller.js
index 22f3c24998beff4f6b6792e3aeda61222ed7f7cd..f05fbaf60acdf9362a21b79cce87055b3b03f767 100644 (file)
@@ -34,9 +34,9 @@ define([
         yangForm.getNodeName = getNodeName;
 
         // watchers
-        $scope.$on('YANGMAN_SET_ERROR_DATA', setRcvdErrorData);
+        $scope.$on(constants.YANGMAN_SET_ERROR_DATA, setRcvdErrorData);
 
-        $scope.$on('YANGMAN_SET_ERROR_MESSAGE', setErrorMessage);
+        $scope.$on(constants.YANGMAN_SET_ERROR_MESSAGE, setErrorMessage);
 
         /**
          * Method for set error message in form