mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
no action if folder is droped on itself
This commit is contained in:
parent
ea14c50838
commit
fa413d0336
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user