diff --git a/js/search/search_form_criteria_numeric.js b/js/search/search_form_criteria_numeric.js index a85520ccbf..1281f835f9 100644 --- a/js/search/search_form_criteria_numeric.js +++ b/js/search/search_form_criteria_numeric.js @@ -103,14 +103,14 @@ $(function() aValues = me._getValues();//TODO : tenir compte du refactoring de la structure // DOM elements - var oOpContentOuterElemFrom = $(''); + var oOpContentOuterElemFrom = $(''); var oOpContentElemFrom = oOpContentOuterElemFrom.find('input').uniqueId(); oOpContentOuterElemFrom.find('label').attr('for', oOpContentElemFrom.attr('id')); if (typeof aValues[0] != 'undefined' && typeof aValues[0].value != 'undefined') { oOpContentElemFrom.val(aValues[0].value); } - var oOpContentOuterElemUntil = $(''); + var oOpContentOuterElemUntil = $(''); var oOpContentElemUntil = oOpContentOuterElemUntil.find('input').uniqueId(); oOpContentOuterElemUntil.find('label').attr('for', oOpContentElemUntil.attr('id')); if (typeof aValues[1] != 'undefined' && typeof aValues[1].value != 'undefined') @@ -140,7 +140,9 @@ $(function() .remove() .end() .find('.sfc_op_content') - .append(oOpContentElem); + .append(oOpContentElem) + ; + }, _getBetweenOperatorValues: function(oOpElem) @@ -210,13 +212,13 @@ $(function() case (typeof aValues[1].label == 'undefined' ): var sDictEntrySuffix = ':From'; break; - case (aValues[0].label.trim() == '' && aValues[1].label.trim() == ''): + case (aValues[0].label == '' && aValues[1].label == ''): var sDictEntrySuffix = ':All'; break; - case (aValues[0].label.trim() == '' ): + case (aValues[0].label == '' ): var sDictEntrySuffix = ':Until'; break; - case (aValues[1].label.trim() == ''): + case (aValues[1].label == ''): var sDictEntrySuffix = ':From'; break; default: