12322.patch
| Resources/Public/JavaScript/component.js (working copy) | ||
|---|---|---|
| 51 | 51 |
{name : 'icon_Workspace'}
|
| 52 | 52 |
] |
| 53 | 53 |
}); |
| 54 | ||
| 55 |
Ext.override(Ext.XTemplate, {
|
|
| 56 |
exists: function(o, name) {
|
|
| 57 |
return typeof o != 'undefined' && o != null && o!=''; |
|
| 58 |
} |
|
| 59 |
}); |
|
| 60 | ||
| 54 | 61 |
TYPO3.Workspaces.RowDetail.rowDetailTemplate = new Ext.XTemplate( |
| 55 | 62 |
'<div class="t3-workspaces-foldoutWrapper">', |
| 56 | 63 |
'<tpl for=".">', |
| ... | ... | |
| 78 | 85 |
'<table class="t3-workspaces-foldout-contentDiff">', |
| 79 | 86 |
'<tr><th><span class="{icon_Workspace}"> </span></th><td>{type_Workspace}</td></tr>',
|
| 80 | 87 |
'<tpl for="diff">', |
| 81 |
'<tr><th>{label}</th><td>{content}</td></tr>',
|
|
| 88 |
'<tr><th>{label}</th><td>',
|
|
| 89 |
'<tpl if="this.exists(content)">', |
|
| 90 |
'{content}',
|
|
| 91 |
'</tpl>', |
|
| 92 |
'</td></tr>', |
|
| 82 | 93 |
'</tpl>', |
| 83 | 94 |
'</table>', |
| 84 | 95 |
'</div>', |
| ... | ... | |
| 88 | 99 |
'<table class="t3-workspaces-foldout-contentDiff">', |
| 89 | 100 |
'<tr><th><span class="{icon_Live}"></span></th><td>{type_Live}</td></tr>',
|
| 90 | 101 |
'<tpl for="live_record">', |
| 91 |
'<tr><th>{label}</th><td>{content}</td></tr>',
|
|
| 102 |
'<tr><th>{label}</th><td>',
|
|
| 103 |
'<tpl if="this.exists(content)">', |
|
| 104 |
'{content}',
|
|
| 105 |
'</tpl>', |
|
| 106 |
'</td></tr>', |
|
| 92 | 107 |
'</tpl>', |
| 93 | 108 |
'</table>', |
| 94 | 109 |
'</div>', |