Index: mod1/dragdrop-min.js =================================================================== --- mod1/dragdrop-min.js (revision 27087) +++ mod1/dragdrop-min.js (working copy) @@ -1 +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->JScodeLibArray for preventing double inclusion #$this->doc->JScode .= ''; $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() : ''; @@ -600,7 +600,7 @@ } else { $output.= $this->render_framework_allSheets($contentTreeData['tree'], $this->currentLanguageKey); } - + // See http://bugs.typo3.org/view.php?id=4821 $renderHooks = $this->hooks_prepareObjectsArray('render_editPageScreen'); foreach ($renderHooks as $hookObj) { @@ -616,7 +616,7 @@ $sys_notes = recordList::showSysNotesForPage(); if ($sys_notes) { $output .= $this->doc->section($LANG->sL('LLL:EXT:cms/layout/locallang.xml:internalNotes'), str_replace('sysext/sys_note/ext_icon.gif', $GLOBALS['BACK_PATH'] . 'sysext/sys_note/ext_icon.gif', $sys_notes), 0, 1); - } + } return $output; } @@ -729,7 +729,7 @@ if (!$this->translatorMode && $canEditContent) { // Create CE specific buttons: $linkMakeLocal = !$elementBelongsToCurrentPage ? $this->link_makeLocal('doc->backPath,t3lib_extMgm::extRelPath('templavoila').'mod1/makelocalcopy.gif','').' title="'.$LANG->getLL('makeLocal').'" border="0" alt="" />', $parentPointer) : ''; - if( $this->modTSconfig['properties']['enableDeleteIconForLocalElements'] < 2 || + if( $this->modTSconfig['properties']['enableDeleteIconForLocalElements'] < 2 || !$elementBelongsToCurrentPage || $this->global_tt_content_elementRegister[$contentTreeArr['el']['uid']] > 1 ) { @@ -935,7 +935,7 @@ } $cellContent .= $cellFragment; - + } } } @@ -1457,7 +1457,7 @@ } else { // Create CE specific buttons: $linkMakeLocal = !$elementBelongsToCurrentPage ? $this->link_makeLocal('doc->backPath,t3lib_extMgm::extRelPath('templavoila').'mod1/makelocalcopy.gif','').' title="'.$LANG->getLL('makeLocal').'" border="0" alt="" />', $parentPointer) : ''; - if( $this->modTSconfig['properties']['enableDeleteIconForLocalElements'] < 2 || + if( $this->modTSconfig['properties']['enableDeleteIconForLocalElements'] < 2 || !$elementBelongsToCurrentPage || $this->global_tt_content_elementRegister[$contentTreeArr['el']['uid']] > 1 ) { @@ -1682,7 +1682,7 @@ * *******************************************/ - + /** * Returns an HTML link for editing * @@ -1738,7 +1738,7 @@ return $this->link_hide($label, $el['table'], $el['uid'], $el['isHidden']); } - + /** * [Describe function...] * @@ -1805,13 +1805,14 @@ */ function link_unlink($label, $unlinkPointer, $realDelete=FALSE, $foreignReferences=FALSE) { - $unlinkPointerString = rawurlencode($this->apiObj->flexform_getStringFromPointer ($unlinkPointer)); + $unlinkPointerString = $this->apiObj->flexform_getStringFromPointer ($unlinkPointer); + $encodedUnlinkPointerString = rawurlencode($unlinkPointerString); if ($realDelete) { $LLlabel = $foreignReferences ? 'deleteRecordWithReferencesMsg' : 'deleteRecordMsg'; - return '' . $label . ''; + return '' . $label . ''; } else { - return '' . $label . ''; + return '' . $label . ''; } }