Index: t3lib/jsfunc.inline.js =================================================================== --- t3lib/jsfunc.inline.js (revision 7533) +++ t3lib/jsfunc.inline.js (working copy) @@ -37,6 +37,7 @@ sourcesLoaded: {}, data: {}, isLoading: false, + savedRecordIcon: new Array(), addToDataArray: function(object) { $H(object).each(function(pair) { @@ -54,11 +55,16 @@ if(($(objectId+'_fields') && $("irre-loading-indicator"+objectId)) || inline.isLoading) { return false; } else if ($(objectId+'_fields') && $(objectId+'_fields').innerHTML.substr(0,16) == '') { + inline.isLoading = true; // add loading-indicator - if ($(objectId+'_label')) { - $(objectId+'_label').insert({before:' '}); - } - inline.isLoading = true; + if ($(objectId + '_icon')) { + this.savedRecordIcon['src'] = $(objectId + '_icon').src; + this.savedRecordIcon['width'] = $(objectId + '_icon').width; + this.savedRecordIcon['height'] = $(objectId + '_icon').height; + $(objectId + '_icon').src = '../../typo3/sysext/t3skin/extjs/images/grid/loading.gif'; + $(objectId + '_icon').width = '16'; + $(objectId + '_icon').height = '16'; + } return this.getRecordDetails(objectId, returnURL); } @@ -375,8 +381,11 @@ return; objectDiv.update(htmlData); // remove loading-indicator - if ($('irre-loading-indicator'+objectId)) - $('irre-loading-indicator'+objectId).remove(); + if ($(objectId + '_icon')) { + $(objectId + '_icon').src = this.savedRecordIcon['src']; + $(objectId + '_icon').width = this.savedRecordIcon['width']; + $(objectId + '_icon').height = this.savedRecordIcon['height']; + } // now that the content is loaded, set the expandState this.expandCollapseRecord(objectId, expandSingle); }, Index: t3lib/class.t3lib_tceforms_inline.php =================================================================== --- t3lib/class.t3lib_tceforms_inline.php (revision 7533) +++ t3lib/class.t3lib_tceforms_inline.php (working copy) @@ -539,7 +539,7 @@ } $altText = t3lib_BEfunc::getRecordIconAltText($rec, $foreign_table); - $iconImg = t3lib_iconWorks::getIconImage($foreign_table, $rec, $this->backPath, 'title="'.htmlspecialchars($altText).'" class="absmiddle"'); + $iconImg = t3lib_iconWorks::getIconImage($foreign_table, $rec, $this->backPath, 'title="'.htmlspecialchars($altText).'" class="absmiddle" id="' . $objectId . '_icon"'); $label = '' . $recTitle . ''; if (!$isVirtualRecord) { $iconImg = $this->wrapWithAnchor($iconImg, '#', array('onclick' => $onClick));