equal
deleted
inserted
replaced
187 ct_counter = setInterval(update_clock, 1000); |
187 ct_counter = setInterval(update_clock, 1000); |
188 } |
188 } |
189 if ( first_load ) |
189 if ( first_load ) |
190 { |
190 { |
191 first_load = false; |
191 first_load = false; |
192 var top = $('track_' + current_track).Top() - 138; |
192 jump_current_track(); |
193 window.scroll(0, top); |
|
194 } |
193 } |
195 } |
194 } |
196 }); |
195 }); |
197 } |
196 } |
198 |
197 |
321 runOnloadHooks(e); |
320 runOnloadHooks(e); |
322 } |
321 } |
323 |
322 |
324 addOnloadHook(refresh_playlist); |
323 addOnloadHook(refresh_playlist); |
325 |
324 |
|
325 // scroll to the current track |
|
326 function jump_current_track() |
|
327 { |
|
328 var top = $('track_' + current_track).Top() - 138; |
|
329 window.scroll(0, top); |
|
330 if ( typeof(fix_scroll) == 'function' ) |
|
331 { |
|
332 fix_scroll(); |
|
333 } |
|
334 } |
|
335 |
326 // pulse the current track |
336 // pulse the current track |
327 var pulsar_current = 0, pulsar_tdlist = [], pulsar_direction = 1; |
337 var pulsar_current = 0, pulsar_tdlist = [], pulsar_direction = 1; |
328 |
338 |
329 var pulsar_reset = function() |
339 var pulsar_reset = function() |
330 { |
340 { |