1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-10 12:14:22 +01:00

fix firefox rendering and show format in date input

This commit is contained in:
fazo96 2014-09-29 09:04:21 +02:00
parent 7fb205171d
commit 8add0d0a2c
3 changed files with 10 additions and 1 deletions

View File

@ -150,6 +150,7 @@ Template.archivedlist.events =
# Note Editor
Template.editor.note = -> Router.current().data()
Template.editor.dateformat = -> getUser().dateformat
Template.editor.formattedDate = ->
return unless @date
moment.unix(@date).format(getUser().dateformat)

View File

@ -73,6 +73,14 @@ input {
.note-date{
float:right;
}
/* firefox specific fix */
@-moz-document url-prefix() {
.note-date{
margin-top: -17px;
}
}
.note-desc {
color: #999;
}

View File

@ -90,7 +90,7 @@
</div>
<div align="center" class="panel-body">
<textarea id="area" class="area form-control in-bt" rows="3" placeholder="...">{{content}}</textarea>
<input class="form-control date" value="{{formattedDate}}" placeholder="Due Date">
<input class="form-control date" value="{{formattedDate}}" placeholder="Due Date ({{dateformat}})">
<button type="button" class="btn btn-warning set-date">
<i class="fa fa-clock-o"></i> Do Today</button>
<button type="button" class="btn btn-info save-editor">