Mobile version v1
This commit is contained in:
@@ -404,14 +404,16 @@ class Editor {
|
||||
this.nextId = asData.next_id;
|
||||
this.thoughts[asData.id] = asData;
|
||||
|
||||
asData.ops.unshift({
|
||||
'attributes': {'thought_time': true},
|
||||
'insert': asData.created_h+"\n"
|
||||
});
|
||||
if(this.prevId==0 || asData.created_d != this.thoughts[this.prevId].created_d) {
|
||||
asData.ops.unshift({
|
||||
'attributes': {'thought_date': true},
|
||||
'insert': 'Thoughts on '+asData.created_d
|
||||
'insert': 'Thoughts on '+asData.created_d+"\n"
|
||||
});
|
||||
}
|
||||
else {
|
||||
asData.ops.unshift({
|
||||
'attributes': {'thought_time': true},
|
||||
'insert': asData.created_h+"\n"
|
||||
});
|
||||
}
|
||||
if(!this.isEmpty()) asData.ops = this.getContent().concat(asData.ops);
|
||||
|
||||
Reference in New Issue
Block a user