-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop datetime_picker_rails and use browser fields
Since Administrate was released, browser support for native fields around date/time/datetime picking has improved substantially. Now, every major browser has adequate support for native pickers. For those who need to support older browsers, we'd recommend using a polyfill such as: https://github.com/jonstipe/datetime-local-polyfill This commit should maintain like-for-like compatability, including allowing filling out seconds by setting the `step` attribute. https://caniuse.com/input-datetime https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local https://stackoverflow.com/questions/20111413/html5-datetime-local-control-how-to-hide-seconds
- Loading branch information
1 parent
cfef37b
commit a07b1d5
Showing
10 changed files
with
4 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
//= require jquery | ||
//= require jquery_ujs | ||
//= require selectize | ||
//= require moment | ||
//= require datetime_picker | ||
//= require_tree . |
14 changes: 0 additions & 14 deletions
14
app/assets/javascripts/administrate/components/date_time_picker.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters