The data for the language display is now fetched on demand

This commit is contained in:
Michael 2024-04-05 09:57:43 +00:00
parent 50b1de5959
commit b40687081e
7 changed files with 80 additions and 8 deletions

View file

@ -440,7 +440,7 @@ class Item
];
if (!empty($item['language'])) {
$menu[$this->l10n->t('Languages')] = 'javascript:alert(\'' . ItemModel::getLanguageMessage($item) . '\');';
$menu[$this->l10n->t('Languages')] = 'javascript:displayLanguage(' . $item['uri-id'] . ');';
}
$menu[$this->l10n->t('Search Text')] = 'javascript:displaySearchText(' . $item['uri-id'] . ');';