Update PSM Date to be Selectable

This commit is contained in:
David Balderston 2014-11-13 13:24:10 -08:00
parent 6e6c2d96fe
commit dff9751105
3 changed files with 12 additions and 4 deletions

View File

@ -49,7 +49,8 @@ form {
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="date"] {
input[type="date"],
input[type="datetime-local"] {
padding-left: 3.2rem;
}
.gh-select {
@ -144,6 +145,7 @@ input[type="tel"],
input[type="text"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
textarea,
.gh-select,
select {
@ -166,6 +168,11 @@ select {
}
// Fix for iOS where this element _looks_ like a <select> element
input[type="datetime-local"] {
-webkit-appearance: none;
}
textarea {
width: 100%;
max-width: 500px;

View File

@ -19,7 +19,7 @@
<div class="form-group">
<label for="post-setting-date">Publish Date</label>
<span class="input-icon icon-calendar">
{{gh-input class="post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" stopEnterKeyDownPropagation="true"}}
{{gh-input type="datetime-local" class="post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" stopEnterKeyDownPropagation="true"}}
</span>
</div>

View File

@ -14,9 +14,10 @@ parseDateFormats = ['DD MMM YY @ HH:mm', 'DD MMM YY HH:mm',
'DD-MM-YY @ HH:mm', 'DD-MM-YY HH:mm',
'DD-MM-YYYY @ HH:mm', 'DD-MM-YYYY HH:mm',
'YYYY-MM-DD @ HH:mm', 'YYYY-MM-DD HH:mm',
'DD MMM @ HH:mm', 'DD MMM HH:mm'];
'DD MMM @ HH:mm', 'DD MMM HH:mm',
'YYYY-MM-DDTHH:mm'];
displayDateFormat = 'DD MMM YY @ HH:mm';
displayDateFormat = 'YYYY-MM-DDTHH:mm';
// Add missing timestamps
verifyTimeStamp = function (dateString) {