From 2d645049154049b9aaab7903d3fc79713fe7e859 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Fri, 13 Mar 2015 17:42:40 +0530 Subject: [PATCH] Fix bugs#4800] On selecting date, the datepicker disappears on master Signed-off-by: Atul Pratap Singh --- js/functions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/functions.js b/js/functions.js index 80b4be7aff..ff93c9b165 100644 --- a/js/functions.js +++ b/js/functions.js @@ -367,9 +367,13 @@ function PMA_addDatepicker($this_element, type, options) $('#ui-timepicker-div').css('z-index', $('#ui-datepicker-div').css('z-index')); }, 0); }, + onSelect: function() { + $this_element.data('datepicker').inline = true; + }, onClose: function (dateText, dp_inst) { // The value is no more from the date picker $this_element.data('comes_from', ''); + $this_element.data('datepicker').inline = false; } }; if (type == "datetime" || type == "timestamp") {