scripts/ajax.js
changeset 39 38dbcda3cf20
parent 22 3a4f0cd0794e
child 78 08f8a72b1f7b
equal deleted inserted replaced
38:87fe0dec1536 39:38dbcda3cf20
   388 addOnloadHook(refresh_playlist);
   388 addOnloadHook(refresh_playlist);
   389 
   389 
   390 // scroll to the current track
   390 // scroll to the current track
   391 function jump_current_track()
   391 function jump_current_track()
   392 {
   392 {
   393   var top = $('track_' + current_track).Top() - 138;
   393   var top = $('track_' + current_track).Top() - 164;
   394   window.scroll(0, top);
   394   window.scroll(0, top);
   395   if ( typeof(fix_scroll) == 'function' )
   395   if ( typeof(fix_scroll) == 'function' )
   396   {
   396   {
   397     fix_scroll();
   397     fix_scroll();
   398   }
   398   }