config warning boutons saisie obligatoire

This commit is contained in:
Fred Tempez 2021-12-12 19:36:32 +01:00
parent a6306439f5
commit 095e0770d9
2 changed files with 28 additions and 1 deletions

View File

@ -23,4 +23,9 @@
.activeButton {
filter : brightness(150%);
}
.buttonNotice {
border: 2px solid red !important;
border-radius: 2px;
}

View File

@ -196,7 +196,29 @@ $( document).ready(function() {
$("#socialMetaImage, #socialSiteMap, #configBackupCopyButton").click(function(event) {
$('body, .button').css('cursor', 'wait');
});
// Mise en évidence des erreurs de saisie au niveau des boutons de sélection
/*
var containers = ["setup", "locale", "social", "connect", "network"];
$.each( containers, function( index, value ){
console.log(value);
var a = $("div#" + value + "Container").find("input.notice").not(".displayNone");
if (a.length > 0) {
$("#config" + capitalizeFirstLetter(a) + "Button").addClass("buttonNotice");
} else {
$("#config" + capitalizeFirstLetter(a) + "Button").removeClass("buttonNotice");
}
});
*/
var locale = $("div#localeContainer").find("input.notice").not(".displayNone");
if (locale.length > 0) {
$("#configLocaleButton").addClass("buttonNotice");
} else {
$("#configLocaleButton").removeClass("buttonNotice");
}
});