From 769f9dc88b178f3176cc52719c9a20d8b014c5a8 Mon Sep 17 00:00:00 2001
From: Benjamin Kiessling <mittagessen@l.unchti.me>
Date: Fri, 18 Nov 2011 13:50:09 +0100
Subject: Change event format to allow different event sources in the future

---
 model_fs.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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'];
+			}
 		}
 	});
 };
-- 
cgit v1.2.1