1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Merge pull request #2864 from lonalore/datepicker

Fix for Issue #2858.
This commit is contained in:
Cameron
2017-11-14 12:24:24 -08:00
committed by GitHub

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);
}
});