From 8f969b467bfec01cf4190e13b99b26cfe25e4ce6 Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Thu, 19 Jan 2012 03:43:12 +0100 Subject: Fix slide information field generation --- frontend.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend.js b/frontend.js index e60d572..d22c287 100644 --- a/frontend.js +++ b/frontend.js @@ -22,10 +22,14 @@ exports.start = function(config) { if(slides['slides'][slide]['type'] === 'image') { slideStr = slideStr +'
  • '; } - if(slides['slides'][slide]['text'].length > 0) { - slideStr = slideStr+'

    '+slides['slides'][slide]['head']+' - '+slides['slides'][slide]['text']+'

    '; + if(slides['slides'][slide]['head'].length > 0) { + slideStr = slideStr+'
    '+slides['slides'][slide]['head']+'
    '; + if(slides['slides'][slide]['text'].length > 0) { + slideStr = slideStr+'