removes console.log outputs
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user