scripts/position.js
changeset 78 08f8a72b1f7b
parent 42 774751e7faed
--- a/scripts/position.js	Fri Jun 12 13:49:22 2009 -0400
+++ b/scripts/position.js	Fri Jun 12 13:50:13 2009 -0400
@@ -41,6 +41,12 @@
 var posslide_handle_dragend = function(x, y)
 {
   pos_in_drag = false;
+  if ( !verify_online() )
+  {
+    posslide_set_position(current_track_pos);
+    return false;
+  }
+  
   var inner = document.getElementById('playhead-filler');
   var base = document.getElementById('playhead');
   var multiplier = $(base).Width() - 13;
@@ -51,6 +57,9 @@
 
 var posslide_handle_click = function(e)
 {
+  if ( !verify_online() )
+    return false;
+  
   e = Drag.fixE(e);
   var base = document.getElementById('playhead');
   var val = e.clientX - $(base).Left();