From cdaed49a2bca23c8902cf137433f29ef5097cd96 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Mon, 20 Feb 2012 20:59:02 -0500 Subject: [PATCH] Subtitle support working --HG-- branch : pmitros-subtitles --- seq_module.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/seq_module.js b/seq_module.js index 57b73543c6..9c52dacad2 100644 --- a/seq_module.js +++ b/seq_module.js @@ -2,27 +2,29 @@ var ${ id }contents=["", %for t in items: - ${t[1]['content']} , + ${t['content']} , %endfor "" ]; var ${ id }types=["", %for t in items: - "${t[1]['type']}" , + "${t['type']}" , %endfor "" ]; var ${ id }init_functions=["", %for t in items: - function(){ ${t[1]['init_js']} }, + function(){ ${t['init_js']} }, %endfor ""]; +var ${ id }titles=${titles}; + var ${ id }destroy_functions=["", %for t in items: - function(){ ${t[1]['destroy_js']} }, + function(){ ${t['destroy_js']} }, %endfor ""]; @@ -52,6 +54,7 @@ function ${ id }goto(i) { function ${ id }setup_click(i) { $('#tt_'+i).click(function(eo) { ${ id }goto(i);}); $('#tt_'+i).addClass("seq_"+${ id }types[i]+"_inactive"); + $('#tt_'+i).attr("title", ${ id }titles[i-1]); }