removes console.log outputs

This commit is contained in:
Shannon
2020-07-14 13:44:59 +10:00
parent f9fdbc41ab
commit b37a4d151b
2 changed files with 1 additions and 12 deletions

View File

@@ -78,8 +78,7 @@ function valServer(serverValidationManager) {
if (modelCtrl.$invalid) {
modelCtrl.$setValidity('valServer', true);
console.log("valServer cleared (watch) " + propertyValidationPath);
//clear the server validation entry
serverValidationManager.removePropertyError(propertyValidationPath, currentCulture, fieldName, currentSegment);
@@ -100,14 +99,12 @@ function valServer(serverValidationManager) {
function serverValidationManagerCallback(isValid, propertyErrors, allErrors) {
if (!isValid) {
modelCtrl.$setValidity('valServer', false);
console.log("valServer error " + propertyValidationPath);
//assign an error msg property to the current validator
modelCtrl.errorMsg = propertyErrors[0].errorMsg;
startWatch();
}
else {
modelCtrl.$setValidity('valServer', true);
console.log("valServer cleared " + propertyValidationPath);
//reset the error message
modelCtrl.errorMsg = "";
stopWatch();

View File

@@ -53,16 +53,10 @@ function serverValidationManager($timeout) {
*/
function notify() {
console.log("NOTIFY!");
$timeout(function () {
console.log(`VAL-ERROR-COUNT: ${items.length}`);
for (var i = 0; i < items.length; i++) {
var item = items[i];
console.log(`VAL-ERROR [${item.propertyAlias}] [${item.culture}] [${item.fieldName}] [${item.segment}]`)
}
notifyCallbacks();
});
}
@@ -578,8 +572,6 @@ function serverValidationManager($timeout) {
return;
}
console.log(`serverValidationMgr subscribe [${propertyAlias}] [${culture}] [${fieldName}] [${segment}]`);
var id = String.CreateGuid();
//normalize culture to "invariant"