mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
cancel drag&drop if source document equals target document
This commit is contained in:
parent
111a2beec6
commit
b83ef1dd66
|
@ -857,6 +857,7 @@ $(document).ready(function() { /* {{{ */
|
|||
formtoken = source_info.formtoken;
|
||||
console.log('Drop '+source_type+' '+source_id+' on '+target_type+' '+target_id);
|
||||
if(source_type == 'document') {
|
||||
if(source_id != target_id) {
|
||||
bootbox.dialog(trans.confirm_transfer_link_document, [{
|
||||
"label" : "<i class='icon-remove'></i> "+trans.transfer_content,
|
||||
"class" : "btn-danger",
|
||||
|
@ -924,6 +925,7 @@ $(document).ready(function() { /* {{{ */
|
|||
"callback": function() {
|
||||
}
|
||||
}]);
|
||||
}
|
||||
|
||||
url = "../out/out.MoveDocument.php?documentid="+source_id+"&targetid="+target_id;
|
||||
// document.location = url;
|
||||
|
|
Loading…
Reference in New Issue
Block a user