}
.subfield_not_filled {
- background-color: #FFFF99;
+ background-color: #FFFF99 !important;
}
.important_subfield_not_filled {
- background-color : #FFFFCC;
+ background-color : #FFFFCC !important;
}
.content_hidden {
var id_string = mandatories[i];
// alert (id_string);
if( ! $("#" + id_string).val() ){
- $("#" + id_string).attr('class','subfield_not_filled').focus();
+ var elt = document.getElementById(id_string);
+ if ( elt.nodeName == 'SELECT' ) {
+ $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
+ } else {
+ $(elt).addClass('subfield_not_filled');
+ }
+
+ $(elt).focus();
StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
}
}
}
if( tabflag[tag+subfield+tagnumber][0] != 1 && (document.getElementById(subfields[i]) != null && ! document.getElementById(subfields[i]).value || document.getElementById(subfields[i]) == null)){
tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ;
- document.getElementById(subfields[i]).setAttribute('class','input_marceditor noEnterSubmit ' + notFilledClass);
+
+ var elt = document.getElementById(subfields[i]);
+ if ( elt.nodeName == 'SELECT' ) {
+ $(elt).siblings('.select2').find("span[role='combobox']").addClass(notFilledClass);
+ } else {
+ elt.setAttribute('class','input_marceditor noEnterSubmit ' + notFilledClass);
+ }
$('#' + subfields[i]).focus();
tabflag[tag+subfield+tagnumber][1]=label[i];
tabflag[tag+subfield+tagnumber][2]=tab[i];