config warning boutons saisie obligatoire
This commit is contained in:
parent
a6306439f5
commit
095e0770d9
@ -24,3 +24,8 @@
|
||||
.activeButton {
|
||||
filter : brightness(150%);
|
||||
}
|
||||
|
||||
.buttonNotice {
|
||||
border: 2px solid red !important;
|
||||
border-radius: 2px;
|
||||
}
|
@ -198,6 +198,28 @@ $( document).ready(function() {
|
||||
});
|
||||
|
||||
|
||||
// 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");
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user