From 5ad307f770a108ccec3d06a8919352a68be49e42 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 b5e44a9269..b41e3599fa 100644 --- a/js/functions.js +++ b/js/functions.js @@ -359,9 +359,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") {