Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55fcd800 authored by Ronak Patel's avatar Ronak Patel
Browse files

removed unified search

parent 3a10986a
Loading
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
/* global $ */
const searchHelpText = t('core', 'Due to encryption the search is only done on files\' name.')
$(document).ready(function() {
	$('#header-menu-unified-search .header-menu__content').append('<div id="search-help-text">' + searchHelpText + '</div>')
})
$(document).on('keyup', '#header #header-menu-unified-search .unified-search__form-input', function() {
	setTimeout(function() {
		let destination = '#header-menu-unified-search .header-menu__content'
		if ($('.unified-search__results-files').length) {
			destination = '.unified-search__results-files'
		}
		$('#search-help-text').remove()
		$(destination).append('<div id="search-help-text">' + searchHelpText + '</div>')
	}, 1000)
})
+0 −1
Original line number Diff line number Diff line
@@ -9,6 +9,5 @@ module.exports = {
		'personal-info-settings': path.join(__dirname, 'src/personal-info-settings.js'),
		'settings-user-security': path.join(__dirname, 'src/settings-user-security.js'),
		'theme-helper-main': path.join(__dirname, 'src/theme-helper-main.js'),
		'unified-search-encryption-message': path.join(__dirname, 'src/unified-search-encryption-message.js'),
	},
}