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:
parent
d63e4063e2
commit
4e5578fd8c
4
e107_web/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.init.js
vendored
Normal file → Executable file
4
e107_web/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.init.js
vendored
Normal file → Executable 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);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user