Project

General

Profile

Bug #24581 ยป 17045.diff

Administrator Admin, 2011-01-20 22:35

View differences:

typo3/js/livesearch.js (working copy)
autoSelect: false,
ctCls: 'live-search-results',
dataProvider: null,
dbListUrl : 'id=0&search_levels=4&search_field=',
searchResultsPid : 0,
displayField: 'title',
emptyText: null,
enableKeyEvents: true,
......
if (this.dataReader.jsonData.pageJump != '') {
jump(this.dataReader.jsonData.pageJump, 'web_list', 'web');
} else {
TYPO3.ModuleMenu.App.showModule('web_list', this.dbListUrl + this.getValue());
TYPO3.ModuleMenu.App.showModule('web_list', this.getSearchResultsUrl(this.getValue()));
}
}
}
......
// go to db_list.php and search for given search value
// @todo the current selected page ID from the page tree is required, also we need the
// values of $BE_USER->returnWebmounts() to search only during the allowed pages
TYPO3.ModuleMenu.App.showModule('web_list', this.dbListUrl + this.getValue());
TYPO3.ModuleMenu.App.showModule('web_list', this.getSearchResultsUrl(this.getValue()));
this.collapse();
}
}
......
TYPO3.BackendLiveSearch.superclass.reset.apply(this, arguments);
},
getSearchResultsUrl : function(searchTerm) {
return 'id=' + this.searchResultsPid + '&search_levels=4&search_field=' + searchTerm;
},
addIframeListeners : function () {
// Add an event handler to each iframe, closing the search window when there's a click inside the iframe
// @todo Is there a cleaner way to handle this?
......
helpTitle: TYPO3.LLL.liveSearch.helpTitle,
emptyText: TYPO3.LLL.liveSearch.emptyText,
loadingText: TYPO3.LLL.liveSearch.loadingText,
listEmptyText: TYPO3.LLL.liveSearch.listEmptyText
listEmptyText: TYPO3.LLL.liveSearch.listEmptyText,
searchResultsPid: TYPO3.configuration.firstWebmountPid
});
TYPO3LiveSearch.applyToMarkup(Ext.get('live-search-box'));
typo3/backend.php (working copy)
),
'FileUpload' => array(
'maxFileSize' => t3lib_div::getMaxUploadFileSize()
)
),
'firstWebmountPid' => intval($GLOBALS['WEBMOUNTS'][0])
);
if ($GLOBALS['LANG']->charSet !== 'utf-8') {
$t3Configuration['username'] = $GLOBALS['LANG']->csConvObj->conv($t3Configuration['username'], $GLOBALS['LANG']->charSet, 'utf-8');
    (1-1/1)