فهرست منبع

fixed bg color, enter press on input

Toby Chui 6 سال پیش
والد
کامیت
69c95aeb0c
1فایلهای تغییر یافته به همراه21 افزوده شده و 1 حذف شده
  1. 21 1
      Video/manager.php

+ 21 - 1
Video/manager.php

@@ -80,6 +80,9 @@ if(isset($_GET["bkend"])){
 	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 	<title>ArOZ Onlineβ</title>
 	<style>
+		body{
+			background:rgba(245,245,245,0.8);
+		}
 		@media (max-width: 767px){
 			.ts.bottom.right.snackbar.active{
 				width: 100% !important;
@@ -101,7 +104,7 @@ if(isset($_GET["bkend"])){
 </nav>
 <br>
 <div class="ts container">
-<div class="ts inverted info segment">
+<div class="ts inverted segment">
 	<p>Batch moving :
 	<select class="ts basic dropdown" name="batchfolderdropdown">
 		<option>Select</option>
@@ -144,6 +147,7 @@ if(isset($_GET["bkend"])){
 		</div>
 	</dialog>
 </div>
+<br><br><br><br>
 <div class="ts bottom right snackbar">
     <div class="content"></div>
 </div>
@@ -165,6 +169,13 @@ $.ajax({url: "manager.php?bkend=true&query=unsort", success: function(result){
 	step2();
 }});
 
+//Bind enter key to the input bar
+$("#playlistname").on("keydown",function(e){
+	if (e.keyCode == 13){
+		submit();
+	}
+});
+
 function step2(){
 	$.ajax({url: "manager.php?bkend=true&query=playlist", success: function(result){
 		var resultArr = JSON.parse(result);
@@ -211,6 +222,15 @@ function step4(){
 	$( "select[name='folderdropdown']" ).change(function() {
 		if($(this).val()!==""){
 			var DOM = $(this);
+			//Try to replace this with the new File System fsexec.php?
+			/*
+			Usage: 
+			$.get( "fsexec.php?opr=move&from=" + {source(From file_system folder or realpath)} + "&target=" + {target(From file_system folder or realpath)}, function(data) {
+				//Return an UUID, can call fsexec.php?listen={uuid} to see the file moving progress
+			});
+			
+			
+			*/
 			$.post( "mover.php", { opr: 1, files: $(this).attr("file"), dir: $(this).val() },function( data ) {
 				if(data == "DONE"){
 					$(DOM).parent().parent().parent().parent().parent().fadeOut( "slow", function() {