Bläddra i källkod

Fixed embedded audio player bug

TC pushbot 5 4 år sedan
förälder
incheckning
8ec7dd43cb
2 ändrade filer med 2 tillägg och 3 borttagningar
  1. 1 1
      file_system.go
  2. 1 2
      web/Music/embedded.html

+ 1 - 1
file_system.go

@@ -1978,7 +1978,7 @@ func system_fs_handleList(w http.ResponseWriter, r *http.Request) {
 	}
 	//Convert the virutal path to realpath
 	realpath, err := userinfo.VirtualPathToRealPath(currentDir)
-	//log.Println(realpath)
+
 	if err != nil {
 		sendErrorResponse(w, "Error. Unable to parse path. "+err.Error())
 		return

+ 1 - 2
web/Music/embedded.html

@@ -308,14 +308,13 @@
 		});
 		
 		//Audio element custom UI listeners
-		$("#progressControl").on("click",function(e){
+		document.getElementById("progressControl").addEventListener("click",function(e){
 			//Click on the progress control bar, update the audio playing location
 			var x = e.pageX - $('#progressControl').offset().left;
 			var w = $("#progressControl").width();
 			var alength = player.duration;
 			var targetPos = (x / w * alength);
 			player.currentTime = targetPos;
-			console.log(x,w,targetPos);
 		});
 		
 		player.addEventListener("timeupdate", function(){