// Check if a search is active in the interface
isSearchActive: function () {
+
+ if (!this.datas.search) {
+ return false; // Search feature disabled on this Fluidbook
+ }
+
return ($('#q').val().length > 0);
},
if (className != undefined) {
res += ' class="' + className + '"';
}
- if (help != undefined && help != '') {
- res += ' data-tooltip="' + this.fluidbook.l10n.__(help) + '"';
- }
+ // ToDo: Allow tooltips for horizontal icon nav but not for menu version
+ // if (help != undefined && help != '') {
+ // res += ' data-tooltip="' + this.fluidbook.l10n.__(help) + '"';
+ // }
res += '>';
if (icon) {
res += getSpriteIcon(name);
this.menu.append('<ul id="menuList"></ul>');
// Add Search form
- $('#menuList').prepend('<li id="menuSearch">' + this.getSearch() + '</li>');
+ if (this.fluidbook.datas.search) {
+ $('#menuList').prepend('<li id="menuSearch">' + this.getSearch() + '</li>');
+ }
try {
var skipHome = (window.localStorage.getItem('home') === '0');