webstaff: teach egJsonExporter about generators
authorGalen Charlton <gmc@esilibrary.com>
Wed, 16 Nov 2016 02:20:24 +0000 (21:20 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 16 Nov 2016 02:37:42 +0000 (21:37 -0500)
commit8f00328449876e9f1802709983bc96ef3b7a7d08
treec1d99e1323b09dc11e0d5b40e434eb261c4c5021
parent5ebbd478908ac375cc97b3bf6d631d9cec0e1686
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>
Open-ILS/web/js/ui/default/staff/services/file.js