Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit 93bfbc3

Browse files
committed
hidden tabs
should be spaces, not tabs
1 parent 10db26c commit 93bfbc3

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/validation-common.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -280,24 +280,24 @@ angular
280280
return isFieldValid;
281281
} // validate()
282282

283-
//----
284-
// Private functions declaration
285-
//----------------------------------
286-
287-
/** Get form within scope (if found)
283+
//----
284+
// Private functions declaration
285+
//----------------------------------
286+
287+
/** Get form within scope (if found)
288288
* @param self
289289
*/
290-
function getScopeForm(self) {
291-
var forms = document.querySelectorAll('form');
292-
for (var i = 0; i < forms.length; i++) {
293-
var form = document.querySelectorAll('form')[i];
294-
if (form && form.name && self.scope[form.name]) {
295-
return self.scope[form.name];
296-
}
297-
}
298-
return null;
299-
}
300-
290+
function getScopeForm(self) {
291+
var forms = document.querySelectorAll('form');
292+
for (var i = 0; i < forms.length; i++) {
293+
var form = document.querySelectorAll('form')[i];
294+
if (form && form.name && self.scope[form.name]) {
295+
return self.scope[form.name];
296+
}
297+
}
298+
return null;
299+
}
300+
301301
/** Add the error to the validation summary
302302
* @param self
303303
* @param string elmName: element name (name attribute)
@@ -323,10 +323,10 @@ angular
323323

324324
// save validation summary 2 variable locations, inside the scope object and also in the form object (if found)
325325
self.scope.$validationSummary = validationSummary;
326-
var form = getScopeForm(self);
327-
if (form) {
328-
form.$validationSummary = validationSummary;
329-
}
326+
var form = getScopeForm(self);
327+
if (form) {
328+
form.$validationSummary = validationSummary;
329+
}
330330
}
331331

332332
/** Quick function to find an object inside an array by it's given field name and value, return the index found or -1

0 commit comments

Comments
 (0)