1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-01 16:37:48 +02:00

Fix for Issue #2858.

This commit is contained in:
Lóna Lore 2017-11-14 20:35:17 +01:00
parent d63e4063e2
commit 4e5578fd8c

View File

@ -17,11 +17,11 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
$item.on("change keyup", function () {
var $this = $(this);
var useUnix = $this.attr("data-date-unix");
var newValue = $this.val();
if (useUnix !== "true") {
if (useUnix !== "true" || newValue == "") {
var id = $this.attr("id");
var newTarget = "#" + id.replace("e-datepicker-", "");
var newValue = $this.val();
$(newTarget).val(newValue);
}
});