mirror of
https://github.com/fazo96/homework.git
synced 2025-01-09 12:10:08 +01:00
fix firefox rendering and show format in date input
This commit is contained in:
parent
7fb205171d
commit
8add0d0a2c
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user