Index: mod1/dragdrop-min.js =================================================================== --- mod1/dragdrop-min.js (revision 26298) +++ mod1/dragdrop-min.js (working copy) @@ -1,20 +1 @@ -var sortable_currentItem;function sortable_unhideRecord(it,command){jumpToUrl(command);} -function sortable_hideRecord(it,command){if(!sortable_removeHidden) -return jumpToUrl(command);while(it.className!='sortableItem') -it=it.parentNode;new Ajax.Request(command);new Effect.Fade(it,{duration:0.5,afterFinish:sortable_hideRecordCallBack});} -function sortable_hideRecordCallBack(obj){var el=obj.element;while(el.lastChild) -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_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;idoc->backPath . 'contrib/prototype/prototype.js" type="text/javascript">'; $this->doc->JScode .= ''; $this->doc->JScode .= ''; - + // Set up JS for dynamic tab menu and side bar $this->doc->JScode .= $this->doc->getDynTabMenuJScode(); $this->doc->JScode .= $this->modTSconfig['properties']['sideBarEnable'] ? $this->sideBarObj->getJScode() : ''; @@ -475,11 +476,19 @@ // Create sortables if (is_array($this->sortableContainers)) { + + if (t3lib_div::compat_version ('4.3')) { + $items_json = json_encode ($this->sortableItems); + } else { + $items_json = t3lib_div::array2json ($this->sortableItems); + } + $this->content .= '