|
@@ -109,6 +109,7 @@ if(isset($_GET["bkend"])){
|
|
|
<select class="ts basic dropdown" name="batchfolderdropdown">
|
|
|
<option>Select</option>
|
|
|
</select>
|
|
|
+ <button name="batchfolderbutton" class="ts button"><i class="move icon"></i>Move</button>
|
|
|
</p>
|
|
|
</div>
|
|
|
|
|
@@ -207,9 +208,9 @@ function step3(){
|
|
|
}
|
|
|
|
|
|
function step4(){
|
|
|
- $( "select[name='batchfolderdropdown']" ).change(function() {
|
|
|
- var Arr = $(this).attr("file").split(",");
|
|
|
- var DOM = $(this);
|
|
|
+ $( "button[name='batchfolderbutton']" ).click(function() {
|
|
|
+ var Arr = $("select[name='batchfolderdropdown']").attr("file").split(",");
|
|
|
+ var DOM = $("select[name='batchfolderdropdown']");
|
|
|
|
|
|
var length = Arr.length;
|
|
|
var success = 0;
|
|
@@ -338,16 +339,20 @@ function step4(){
|
|
|
}
|
|
|
|
|
|
function submit(){
|
|
|
- var storage = $("select[name='storagedropdown']").val() + "/";
|
|
|
- if(storage == "internal/"){
|
|
|
- storage = "playlist/";
|
|
|
- }
|
|
|
- $.post( "new_folder.php", { storage: storage, name : $("#playlistname").val() },function( data ) {
|
|
|
- if(data == "DONE"){
|
|
|
- msgbox("Finished.");
|
|
|
- location.reload();
|
|
|
+ if(storage = $("select[name='storagedropdown']").val() !== ""){
|
|
|
+ var storage = $("select[name='storagedropdown']").val() + "/";
|
|
|
+ if(storage == "internal/"){
|
|
|
+ storage = "playlist/";
|
|
|
}
|
|
|
- });
|
|
|
+ $.post( "new_folder.php", { storage: storage, name : $("#playlistname").val() },function( data ) {
|
|
|
+ if(data == "DONE"){
|
|
|
+ msgbox("Finished.");
|
|
|
+ location.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ msgbox("You must select the directory.");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
function msgbox(content,bgcolor,fontcolor){
|