Commit ae1d7286 by Piotr Mitros

Merge with subtitles

parents 77f1228a cdaed49a
...@@ -2,27 +2,29 @@ ...@@ -2,27 +2,29 @@
var ${ id }contents=["", var ${ id }contents=["",
%for t in items: %for t in items:
${t[1]['content']} , ${t['content']} ,
%endfor %endfor
"" ""
]; ];
var ${ id }types=["", var ${ id }types=["",
%for t in items: %for t in items:
"${t[1]['type']}" , "${t['type']}" ,
%endfor %endfor
"" ""
]; ];
var ${ id }init_functions=["", var ${ id }init_functions=["",
%for t in items: %for t in items:
function(){ ${t[1]['init_js']} }, function(){ ${t['init_js']} },
%endfor %endfor
""]; ""];
var ${ id }titles=${titles};
var ${ id }destroy_functions=["", var ${ id }destroy_functions=["",
%for t in items: %for t in items:
function(){ ${t[1]['destroy_js']} }, function(){ ${t['destroy_js']} },
%endfor %endfor
""]; ""];
...@@ -52,6 +54,7 @@ function ${ id }goto(i) { ...@@ -52,6 +54,7 @@ function ${ id }goto(i) {
function ${ id }setup_click(i) { function ${ id }setup_click(i) {
$('#tt_'+i).click(function(eo) { ${ id }goto(i);}); $('#tt_'+i).click(function(eo) { ${ id }goto(i);});
$('#tt_'+i).addClass("seq_"+${ id }types[i]+"_inactive"); $('#tt_'+i).addClass("seq_"+${ id }types[i]+"_inactive");
$('#tt_'+i).attr("title", ${ id }titles[i-1]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment