no action if folder is droped on itself

This commit is contained in:
Uwe Steinmann 2016-04-29 08:10:10 +02:00
parent ea14c50838
commit fa413d0336

View File

@ -665,7 +665,7 @@ $(document).ready(function() {
url = "../out/out.MoveDocument.php?documentid="+source_id+"&targetid="+target_id; url = "../out/out.MoveDocument.php?documentid="+source_id+"&targetid="+target_id;
// document.location = url; // document.location = url;
} else if(source_type == 'folder') { } else if(source_type == 'folder' && source_id != target_id) {
bootbox.dialog(trans.confirm_move_folder, [{ bootbox.dialog(trans.confirm_move_folder, [{
"label" : "<i class='icon-remove'></i> "+trans.move_folder, "label" : "<i class='icon-remove'></i> "+trans.move_folder,
"class" : "btn-danger", "class" : "btn-danger",
@ -814,7 +814,7 @@ $(document).ready(function() {
url = "../out/out.MoveDocument.php?documentid="+source_id+"&targetid="+target_id; url = "../out/out.MoveDocument.php?documentid="+source_id+"&targetid="+target_id;
// document.location = url; // document.location = url;
} else if(source_type == 'folder') { } else if(source_type == 'folder' && source_id != target_id) {
bootbox.dialog(trans.confirm_move_folder, [{ bootbox.dialog(trans.confirm_move_folder, [{
"label" : "<i class='icon-remove'></i> "+trans.move_folder, "label" : "<i class='icon-remove'></i> "+trans.move_folder,
"class" : "btn-danger", "class" : "btn-danger",