Commit 25cb4673 by Piotr Mitros

Sequential module stores position. Basic groundwork to make video module do the same

parent a2f83751
......@@ -30,6 +30,10 @@ var ${ id }loc = -1;
function ${ id }goto(i) {
log_event("seq_goto", {'old':${id}loc, 'new':i,'id':'${id}'});
postJSON('/modx/sequential/${ id }/goto_position',
{'position' : i });
if (${ id }loc!=-1)
${ id }destroy_functions[ ${ id }loc ]();
$('#seq_content').html(${ id }contents[i]);
......@@ -72,5 +76,5 @@ $(function() {
}
$('#${ id }next').click(function(eo) { ${ id }next();});
$('#${ id }prev').click(function(eo) { ${ id }prev();});
${ id }goto(1);
${ id }goto( ${ position } );
});
......@@ -30,7 +30,7 @@ function good() {
ajax_video=good;
loadNewVideo(streams["1.0"], ${ video_time });
loadNewVideo(streams["1.0"], ${ position });
function add_speed(key, stream) {
var id = 'speed_' + stream;
......
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