Project

General

Profile

Bug #22577 ยป 14293.diff

Administrator Admin, 2010-05-03 20:57

View differences:

t3lib/jsfunc.inline.js (working copy)
sourcesLoaded: {},
data: {},
isLoading: false,
savedRecordIcon: new Array(),
addToDataArray: function(object) {
$H(object).each(function(pair) {
......
if(($(objectId+'_fields') && $("irre-loading-indicator"+objectId)) || inline.isLoading) {
return false;
} else if ($(objectId+'_fields') && $(objectId+'_fields').innerHTML.substr(0,16) == '<!--notloaded-->') {
inline.isLoading = true;
// add loading-indicator
if ($(objectId+'_label')) {
$(objectId+'_label').insert({before:'<span id="irre-loading-indicator'+objectId+'" class="loading-indicator">&nbsp;</span>'});
}
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);
}
......
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);
},
t3lib/class.t3lib_tceforms_inline.php (working copy)
}
$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 = '<span id="' . $objectId . '_label">' . $recTitle . '</span>';
if (!$isVirtualRecord) {
$iconImg = $this->wrapWithAnchor($iconImg, '#', array('onclick' => $onClick));
    (1-1/1)