diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-07-01 18:27:49 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-07-01 18:27:49 -0700 |
commit | d57c5530b7ad56a7cc89782b4d186d8fddb55d86 (patch) | |
tree | 09cce1fded053b04ea716c2d4d44fb4676b24800 /ext/fg | |
parent | 390cb12896607144fcd1046950f3a2aa680db71b (diff) |
view added notes
Diffstat (limited to 'ext/fg')
-rw-r--r-- | ext/fg/js/display-frame.js | 4 | ||||
-rw-r--r-- | ext/fg/js/util.js | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ext/fg/js/display-frame.js b/ext/fg/js/display-frame.js index 9fd09e74..b29a0379 100644 --- a/ext/fg/js/display-frame.js +++ b/ext/fg/js/display-frame.js @@ -31,6 +31,10 @@ window.displayFrame = new class extends Display { return bgDefinitionsAddable(definitions, modes); } + noteView(noteId) { + return bgNoteView(noteId); + } + templateRender(template, data) { return bgTemplateRender(template, data); } diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js index c6270ce6..e1b0e080 100644 --- a/ext/fg/js/util.js +++ b/ext/fg/js/util.js @@ -62,6 +62,9 @@ function bgDefinitionAdd(definition, mode) { return bgInvoke('definitionAdd', {definition, mode}); } +function bgNoteView(noteId) { + return bgInvoke('noteView', {noteId}); +} /* * Document |