Index: mod1/dragdrop-min.js =================================================================== --- mod1/dragdrop-min.js (revision 26298) +++ mod1/dragdrop-min.js (working copy) @@ -6,6 +6,7 @@ el.removeChild(el.lastChild);} function sortable_unlinkRecordCallBack(obj){var el=obj.element;var pn=el.parentNode;pn.removeChild(el);sortable_update(pn);} function sortable_unlinkRecord(id){new Ajax.Request("index.php?"+sortable_linkParameters+"&ajaxUnlinkRecord="+escape(id));new Effect.Fade(id,{duration:0.5,afterFinish:sortable_unlinkRecordCallBack});} +function sortable_deleteRecord(id){new Ajax.Request("index.php?"+sortable_linkParameters+"&ajaxDeleteRecord="+escape(id));new Effect.Fade(id,{duration:0.5,afterFinish:sortable_unlinkRecordCallBack});} function sortable_updateItemButtons(el,position,pID){var p=new Array();var p1=new Array();var href="";var i=0;var newPos=escape(pID+position);var childs=el.childElements() var buttons=childs[0].childElements()[0].childElements()[0].childElements()[1].childNodes;for(i=0;iapiObj->flexform_getPointerFromString(t3lib_div::_GP('source')); $destinationPointer = $this->apiObj->flexform_getPointerFromString(t3lib_div::_GP('destination')); @@ -309,6 +309,12 @@ exit; } + if (t3lib_div::_GP ('ajaxDeleteRecord')) { + $deleteDestinationPointer = $this->apiObj->flexform_getPointerFromString (t3lib_div::_GP ('ajaxDeleteRecord')); + $this->apiObj->deleteElement ($deleteDestinationPointer); + exit; + } + $this->calcPerms = $GLOBALS['BE_USER']->calcPerms($pageInfoArr); // Define the root element record: @@ -1789,9 +1795,9 @@ if ($realDelete) { $LLlabel = $foreignReferences ? 'deleteRecordWithReferencesMsg' : 'deleteRecordMsg'; - return '' . $label . ''; + return '' . $label . ''; } else { - return '' . $label . ''; + return '' . $label . ''; } }