From 487d89d970c04f4db690d000a6f6a147fb5b9524 Mon Sep 17 00:00:00 2001 From: Bruno Da Silva Date: Fri, 20 Apr 2018 14:50:48 +0000 Subject: [PATCH] bugfix: advanced search - datepicker not displayed in dialogs : because the datepicker had a lower z-index. It is now forced using the `beforeShow` datepicker's option so we do not force it globaly has if we had done this using the css SVN:trunk[5711] --- js/search/search_form_criteria_date_abstract.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/search/search_form_criteria_date_abstract.js b/js/search/search_form_criteria_date_abstract.js index 772ec9f07..7365bc934 100644 --- a/js/search/search_form_criteria_date_abstract.js +++ b/js/search/search_form_criteria_date_abstract.js @@ -191,6 +191,11 @@ $(function() showOn:'button', changeMonth:true, changeYear:true, + beforeShow: function() { + setTimeout(function(){ + $('.ui-datepicker').css('z-index', 99999999999999);//this is a hack that let us do not force the datepicker z-index globally but only here. This is needed when we are in presence of a dialog because the dialog has a greater z-index than the datepicker + }, 0); + } }; for (var i = 0; i < aInputsParamLength; i++) { var oInputParam = aInputsParam[i];