Bug #21571 » 12616_v2.patch
typo3/sysext/recycler/ext_tables.php (Arbeitskopie) | ||
---|---|---|
t3lib_extMgm::addModulePath('web_txrecyclerM1',t3lib_extMgm::extPath ($_EXTKEY).'mod1/');
|
||
t3lib_extMgm::addModule('web','txrecyclerM1','',t3lib_extMgm::extPath($_EXTKEY).'mod1/');
|
||
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['recyclerGridHeight'] = array(
|
||
'type' => 'text',
|
||
'label' => 'LLL:EXT:recycler/locallang_db.xml:userSettings.RecyclerHeight',
|
||
'default' => 600,
|
||
'csh' => 'tx_recycler_grid_height',
|
||
);
|
||
t3lib_extMgm::addFieldsToUserSettings('recyclerGridHeight', 'after:resizeTextareas_Flexible');
|
||
t3lib_extMgm::addLLrefForTCAdescr('_MOD_user_setup','EXT:recycler/locallang_csh_mod.xml');
|
||
}
|
||
?>
|
typo3/sysext/recycler/locallang_db.xml (Arbeitskopie) | ||
---|---|---|
<data type="array">
|
||
<languageKey index="default" type="array">
|
||
<label index="moduleFunction.tx_recycler_modfunc1">Recycler</label>
|
||
<label index="userSettings.RecyclerHeight">Height of Recycler Grid</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|
typo3/sysext/recycler/mod1/index.php (Arbeitskopie) | ||
---|---|---|
* @return array The JavaScript configuration
|
||
*/
|
||
protected function getJavaScriptConfiguration() {
|
||
$gridHeight = isset($GLOBALS['BE_USER']->uc['recyclerGridHeight']) && intval($GLOBALS['BE_USER']->uc['recyclerGridHeight']) ? intval($GLOBALS['BE_USER']->uc['recyclerGridHeight']) : 600;
|
||
$configuration = array(
|
||
'pagingSize' => $this->recordsPageLimit,
|
||
'showDepthMenu' => 1,
|
||
... | ... | |
'deleteDisable' => $this->allowDelete ? 0 : 1,
|
||
'depthSelection' => $this->getDataFromSession('depthSelection', 0),
|
||
'tableSelection' => $this->getDataFromSession('tableSelection', 'pages'),
|
||
'gridHeight' => $gridHeight,
|
||
);
|
||
return $configuration;
|
||
}
|
typo3/sysext/recycler/res/js/t3_recycler.js (Arbeitskopie) | ||
---|---|---|
layout: 'fit',
|
||
renderTo: Recycler.statics.renderTo,
|
||
width: '98%',
|
||
height: parseInt(Recycler.statics.gridHeight),
|
||
frame: true,
|
||
border: true,
|
||
defaults: {autoScroll: false},
|
||
... | ... | |
}
|
||
},
|
||
fitSizeToParent : function() {
|
||
// Uses the dimension of the current viewport, but removes the document header
|
||
// and an addtional margin of 40 pixels (e.g. Safari needs this addition)
|
||
this.fitToElement.setHeight(document.viewport.getHeight() - this.fitToElement.getTop() - 40);
|
||
var pos = this.getPosition(true), size = this.fitToElement
|
||
.getViewSize();
|
||
this.setSize(size.width - pos[0], size.height - pos[1]);
|
- « Previous
- 1
- 2
- Next »