1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-18 19:39:45 +01: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
commit f2a9a88c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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