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

Merge pull request #1704 from lonalore/master

Fix for changeDate() not being fired when value manually altered. Iss…
This commit is contained in:
Cameron
2016-06-14 10:46:18 -07:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
var $item = $(this); var $item = $(this);
// Fix for changeDate() not being fired when value manually altered. // Fix for changeDate() not being fired when value manually altered.
$item.on("change", function () { $item.on("change keyup", function () {
var $this = $(this); var $this = $(this);
var useUnix = $this.attr("data-date-unix"); var useUnix = $this.attr("data-date-unix");
@@ -53,7 +53,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
}); });
}); });
$(context).find('input.e-date').once('datetimepicker-init').each(function () { $(context).find('input.e-datetime').once('datetimepicker-init').each(function () {
var $item = $(this); var $item = $(this);
$item.datetimepicker({ $item.datetimepicker({