mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Fix backspace in search and empty content message
This commit is contained in:
parent
f3a77c7d99
commit
618a08aa00
1 changed files with 9 additions and 4 deletions
|
|
@ -116,7 +116,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
|||
});
|
||||
} else {
|
||||
$('#apps-list').addClass('hidden');
|
||||
$('#apps-list-empty').removeClass('hidden');
|
||||
$('#apps-list-empty').removeClass('hidden').find('h2').text(t('settings', 'No apps found for your version'));
|
||||
}
|
||||
|
||||
$('.app-level .official').tipsy({fallback: t('settings', 'Official apps are developed by and within the ownCloud community. They offer functionality central to ownCloud and are ready for production use.')});
|
||||
|
|
@ -416,12 +416,14 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
|||
filter: function(query) {
|
||||
var $appList = $('#apps-list'),
|
||||
$emptyList = $('#apps-list-empty');
|
||||
$appList.removeClass('hidden');
|
||||
$appList.find('.section').removeClass('hidden');
|
||||
$emptyList.addClass('hidden');
|
||||
|
||||
if (query === '') {
|
||||
$appList.find('.section').removeClass('hidden');
|
||||
$appList.removeClass('hidden');
|
||||
$emptyList.addClass('hidden');
|
||||
return;
|
||||
}
|
||||
|
||||
query = query.toLowerCase();
|
||||
$appList.find('.section').addClass('hidden');
|
||||
|
||||
|
|
@ -462,6 +464,9 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
|||
if (apps.length === 0) {
|
||||
$appList.addClass('hidden');
|
||||
$emptyList.removeClass('hidden');
|
||||
$emptyList.removeClass('hidden').find('h2').text(t('settings', 'No apps found for "{query}"', {
|
||||
query: query
|
||||
}));
|
||||
} else {
|
||||
_.each(apps, function (app) {
|
||||
$('#app-' + app.id).removeClass('hidden');
|
||||
|
|
|
|||
Loading…
Reference in a new issue