mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +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;
|
formtoken = source_info.formtoken;
|
||||||
console.log('Drop '+source_type+' '+source_id+' on '+target_type+' '+target_id);
|
console.log('Drop '+source_type+' '+source_id+' on '+target_type+' '+target_id);
|
||||||
if(source_type == 'document') {
|
if(source_type == 'document') {
|
||||||
|
if(source_id != target_id) {
|
||||||
bootbox.dialog(trans.confirm_transfer_link_document, [{
|
bootbox.dialog(trans.confirm_transfer_link_document, [{
|
||||||
"label" : "<i class='icon-remove'></i> "+trans.transfer_content,
|
"label" : "<i class='icon-remove'></i> "+trans.transfer_content,
|
||||||
"class" : "btn-danger",
|
"class" : "btn-danger",
|
||||||
|
@ -924,6 +925,7 @@ $(document).ready(function() { /* {{{ */
|
||||||
"callback": function() {
|
"callback": 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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user