Browse Source

config warning boutons saisie obligatoire

master
Fred Tempez 5 months ago
parent
commit
095e0770d9
  1. 5
      core/module/config/view/index/index.css
  2. 24
      core/module/config/view/index/index.js.php

5
core/module/config/view/index/index.css

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

24
core/module/config/view/index/index.js.php

@ -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");
}
});

Loading…
Cancel
Save