Project

General

Profile

Feature #30014 » feature_30014.diff

Fabien Udriot, 2011-09-19 11:47

View differences:

t3lib/js/extjs/tree/tree.js
});
TYPO3.Components.Tree.StandardTree.superclass.initComponent.call(this);
},
filterTree: function(filterText) {
filterTree: function() {
var filterText = this.getTopToolbar().getComponent('filterText');
var filterChecked = this.getTopToolbar().getComponent('filterChecked');
var onlyChecked = filterChecked.pressed;
var text = filterText.getValue();
Ext.each(this.hiddenNodes, function(node) {
node.ui.show();
node.ui.removeClass('bgColor6');
});
if (!text) {
this.filter.clear();
return;
}
this.expandAll();
var regText = (this.filterOptionStartsWith ? '^' : '') + Ext.escapeRe(text);
var re = new RegExp(regText, 'i');
......
var me = this;
this.root.cascade(function(node) {
if (node.ui.ctNode.offsetHeight < 3) {
if (!re.test(node.text)) {
if (!re.test(node.text) || (onlyChecked && !node.ui.isChecked())) {
node.ui.hide();
me.hiddenNodes.push(node);
} else {
......
TYPO3.Components.Tree.Toolbar = function(items, scope) {
items = items || [];
items.push([
' ',
{
iconCls: 't3-icon t3-icon-actions t3-icon-actions-system t3-icon-document-select',
tooltip: TYPO3.lang['tcatree.filter.onlyChecked'],
itemId: 'filterChecked',
enableToggle: true,
toggleHandler: scope.filterTree,
scope: scope
},
{
iconCls: 't3-icon t3-icon-actions t3-icon-actions-system t3-icon-system-tree-search-open',
menu: {
......
group: 'searchStartsWith',
handler: function(item) {
scope.filterOptionStartsWith = true;
scope.filterTree(scope.getTopToolbar().getComponent('filterText'));
scope.filterTree();
},
scope: scope
},
......
group: 'searchStartsWith',
handler: function(item) {
scope.filterOptionStartsWith = false;
scope.filterTree(scope.getTopToolbar().getComponent('filterText'));
scope.filterTree();
},
scope: scope
}
typo3/sysext/lang/locallang_csh_corebe.xml
<label index="tcatree.findItem">Find Item</label>
<label index="tcatree.filter.startsWith">starts with</label>
<label index="tcatree.filter.contains">contains</label>
<label index="tcatree.filter.onlyChecked">Display only checked items</label>
<label index="list_module.alttitle">The Web&gt;List module</label>
<label index="list_module.description">Listing records located on a page. From here you can copy/cut/paste records around in the system. You can edit records, access the change history of elements etc.</label>
<label index="list_module.details">The list module is like the file manager in an Operating System; it provides basic access to all &quot;elements&quot; available in the system. In TYPO3 almost all information is stored in the database and managed after the same principles internally. For instance Content Elements representing page content are database records just like backend users are. The Web&gt;List module allows us to create, modify and delete both kinds of records after the same principles.
(1-1/2)