Liege : add backoffice custom style and js.

This commit is contained in:
Christophe Boulanger 2019-06-06 09:09:33 +02:00
parent 36e2b00f37
commit 7b9f145d05
2 changed files with 15 additions and 0 deletions

View File

@ -2,3 +2,9 @@ div#main > div#main-content {
background-color:#C6F9A4!important;
}
/* Remove border on fields validate form page */
form.quixote input[readonly], form.quixote select[readonly], form.quixote textarea[readonly] {
border-width: 0;
padding-left: 0;
padding-top: 0;
}

View File

@ -20,6 +20,15 @@ $(function() {
// End of General method to get elements thanks to regex !
// Set readonly attributes on "input, textarea and select"
// element when meeting a .readonly css class on div parent*/
var $form_divs_readonly = $('form.quixote div.readonly');
$form_divs_readonly.each(function() {
$("input", this).prop('readonly', true);
$("textarea", this).prop('readonly', true);
$("select", this).prop('readonly', true);
});
// End of Set readonly attributes on ...
$.fn.get_elem_by_inner_html = function( o ) {
var element = null;