1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

Add new pages for website when not authenicated for saas app.

This commit is contained in:
Lucas Brown
2019-08-03 15:02:00 -08:00
parent 0344473c1e
commit c76744a897
16 changed files with 981 additions and 5 deletions

View File

@@ -19,15 +19,22 @@ function hideDuplicateValidationFieldErrors() {
vnode = $(this).parent().parent().find('div.invalid-feedback');
}
var feedback_count = 0;
var formField = $(vnode).attr('data-field');
$(document).find('div.validation-error').find('li').each(function(){
if ($(this).attr('data-form-field') == formField) {
if ($(vnode).is(":visible") || $(vnode).css('display') === 'none') {
$(this).hide();
feedback_count++;
} else {
console.log('form validation feedback for '+fname+' is not visable, display main.');
}
}
});
if (feedback_count == 0) {
$(document).find('div.validation-error').find('ul').hide();
}
});
}