summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kiessling <mittagessen@l.unchti.me>2011-11-18 13:50:09 +0100
committerBenjamin Kiessling <mittagessen@l.unchti.me>2011-11-18 13:50:09 +0100
commit769f9dc88b178f3176cc52719c9a20d8b014c5a8 (patch)
treeb6d50b36cea99eb725e7689ab1a5f853614db23a
parent7ab59362cdf6fa6fa577457fc3f239c7680fabe2 (diff)
Change event format to allow different event sources in the future
-rw-r--r--model_fs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/model_fs.js b/model_fs.js
index c8d04e2..353d107 100644
--- a/model_fs.js
+++ b/model_fs.js
@@ -85,7 +85,10 @@ exports.rebuildFiles = function() {
} catch(e) {
console.log(e.toString());
}
- files[slideset]['events'] = JSON.parse(data.toString());
+ var events = JSON.parse(data.toString());
+ if(events['type'] == 'text') {
+ files[slideset]['events'] = events['events'];
+ }
}
});
};