]> git.evergreen-ils.org Git - working/Evergreen.git/commit
webstaff: teach egJsonExporter about generators
authorGalen Charlton <gmc@esilibrary.com>
Wed, 16 Nov 2016 02:20:24 +0000 (21:20 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 22 Nov 2016 19:10:06 +0000 (14:10 -0500)
commitdf4972887b8249bc9d078b32152d8f7aec58aa41
tree1e3bcb7a51c592823bddd87a5ee80cb443293311
parent705bb8b53ab437124c769440ad569d0a89133138
webstaff: teach egJsonExporter about generators

This patch adds an attribute called 'generator' to the eg-json-exporter
directive as an alternative to using 'container' to pass a JavaScript
object. 'generator' should be a function that returns a promise with
the data to be exported.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/file.js