mirror of
https://github.com/e107inc/e107.git
synced 2025-03-18 19:39:45 +01:00
commit
f2a9a88c14
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