Patch multiday thoughts

This commit is contained in:
2020-03-22 17:29:50 +01:00
parent 80b9a54607
commit 1c88ce7dfa
17 changed files with 2372 additions and 2285 deletions

View File

@@ -1,13 +1,18 @@
<div id="read"></div>
<script type="text/javascript">
oMyThoughts.pageInit = function(asHash, bFirstPage) {
oEditor = new Editor('#read', true);
oEditor.open(asHash.items[0]);
};
oMyThoughts.onSamePageMove = function(asHash) {
$('#read').empty();
self.pageInit(self.getHash());
return false;
};
<div id="read"></div>
<script type="text/javascript">
oMyThoughts.pageInit = function(asHash, bFirstPage) {
oEditor = new Editor('#read', true);
oEditor.open(asHash.items[0]);
};
oMyThoughts.onSamePageMove = function(asHash) {
$('#read').empty();
self.pageInit(self.getHash());
return false;
};
oMyThoughts.onKeydown = function(oEvent) {
if(oEvent.which == 37 || oEvent.which == 38) oEditor.prevPage();
else if(oEvent.which == 39 || oEvent.which == 40) oEditor.nextPage();
}
</script>