Project

General

Profile

Feature #18072 ยป blindup-blinddown-for-palettes.patch

Administrator Admin, 2008-01-29 10:45

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
*/
function wrapOpenPalette($header,$table,$row,$palette,$retFunc) {
$id = 'TCEFORMS_'.$table.'_'.$palette.'_'.$row['uid'];
$res = '<a href="#" onclick="TBE_EDITOR.toggle_display_states(\''.$id.'\',\'block\',\'none\'); return false;" >'.$header.'</a>';
$res = '<a href="#" onclick="TBE_EDITOR.toggle_display_states(\''.$id.'\'); return false;" >'.$header.'</a>';
return array($res,'');
}
typo3/jsfunc.tbe_editor.js (working copy)
output+=''+input.substr(pointer);
return output;
},
toggle_display_states: function(id, state_1, state_2) {
toggle_display_states: function(id) {
var node = document.getElementById(id);
if (node) {
switch (node.style.display) {
case state_1:
node.style.display = state_2;
break;
case state_2:
node.style.display = state_1;
break;
}
var state = node.visible();
if(state) {
Effect.BlindUp(node, {duration : 0.1});
} else {
Effect.BlindDown(node, {duration : 0.1});
}
return false;
}
    (1-1/1)