Skip to content

Commit

Permalink
upgrade flatpickr
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed May 11, 2018
1 parent 52f0f12 commit babf2c5
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
[submodule "public/vendor/shepherd"]
path = public/vendor/shepherd
url = https://github.com/HubSpot/shepherd
[submodule "public/vendor/flatpickr"]
path = public/vendor/flatpickr
url = https://github.com/chmln/flatpickr
[submodule "public/vendor/bar-rating"]
path = public/vendor/bar-rating
url = https://github.com/antennaio/jquery-bar-rating
4 changes: 4 additions & 0 deletions app/templating/AssetHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ trait AssetHelper { self: I18nHelper =>
s"""<script async defer src="${staticUrl("javascripts/vendor/fp2.min.js")}"></script>"""
}

val flatpickrTag = Html {
s"""<script async defer src="${staticUrl("javascripts/vendor/flatpickr.min.js")}"></script>"""
}

private def cdnOrLocal(cdn: String, test: String, local: String) = Html {
if (isProd)
s"""<script src="$cdn"></script><script>$test || document.write('<script src="$local">\\x3C/script>')</script>"""
Expand Down
2 changes: 2 additions & 0 deletions public/javascripts/vendor/flatpickr.min.js

Large diffs are not rendered by default.

17 changes: 13 additions & 4 deletions public/stylesheets/flatpickr.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/stylesheets/material.form.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ body.dark .material.form .form-group select option {
}
.material.form .form-group select ~ .control-label,
.material.form .form-group input:focus ~ .control-label,
.material.form .form-group input.flatpickr ~ .control-label,
.material.form .form-group input:valid ~ .control-label,
.material.form .form-group input.form-file ~ .control-label,
.material.form .form-group input.has-value ~ .control-label,
Expand Down
1 change: 0 additions & 1 deletion public/vendor/flatpickr
Submodule flatpickr deleted from 6b7b34

0 comments on commit babf2c5

Please sign in to comment.