Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Fixes date-error when returning to a datetime-picker on Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Apr 1, 2019
1 parent 2fa3dd3 commit d841ed1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
---------

- Fixes date-error when returning to a datetime-picker on Safari.
[href]

1.1.12 (2019-04-01)
~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion onegov/org/assets/js/datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ var setup_datetimepicker = function(type, selector, onChange, extraOptions) {
// the back button (Safari)
_.defer(function() {
field.val(oldval);
form.data('submitted', false);
form.data('submitted-' + selector, false);
});

return true;
Expand Down

0 comments on commit d841ed1

Please sign in to comment.