Fix bugs#4800] On selecting date, the datepicker disappears on master

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
This commit is contained in:
Atul Pratap Singh 2015-03-13 17:42:40 +05:30
parent 9041ec8dd7
commit 5ad307f770

View File

@ -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") {