Project

General

Profile

Bug #25279 » 17892.patch

Administrator Admin, 2011-03-08 12:42

View differences:

typo3/sysext/em/res/js/em_locallist.js (revision )
},
datachanged: function(store) {
Ext.getCmp('displayExtensionLabel').setText(TYPO3.lang.extensions + ' ' + store.data.length);
var hasFilters = false;
var hasFilters = store.hasStoreFilter();
TYPO3.EM.Filters.filters.each(function (filter) {
if (filter.active) {
hasFilters = true;
......
return true;
},
hasStoreFilter: function() {
return (TYPO3.settings.EM.hide_obsolete || TYPO3.settings.EM.hide_shy || TYPO3.settings.EM.display_installed);
},
clearStoreFilters: function(scope) {
Ext.each(scope.filterMenuButton.menu.items.items, function(item) {
item.setChecked(false, true);
});
TYPO3.settings.EM.hide_obsolete = TYPO3.settings.EM.hide_shy = TYPO3.settings.EM.display_installed = 0;
TYPO3.EM.ExtDirect.saveSetting('display_installed', 0);
TYPO3.EM.ExtDirect.saveSetting('hide_shy', 0);
TYPO3.EM.ExtDirect.saveSetting('hide_obsolete', 0);
scope.filterRecords();
},
highlightSearch: function(value) {
var control = Ext.getCmp('localSearchField');
if (control) {
......
text: TYPO3.lang.cmd_ClearAllFilters,
ref: '../doClearFilters',
handler: function() {
this.localstore.clearStoreFilters(this);
TYPO3.EM.Filters.clearFilters();
},
scope: this,
(2-2/2)