mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 21:24:23 +08:00
Fix smart annotation links on the item card [SCI-9571] (#6501)
This commit is contained in:
parent
efaef6f182
commit
18c03eb836
2 changed files with 3 additions and 5 deletions
|
@ -751,7 +751,6 @@ var RepositoryDatatable = (function(global) {
|
|||
TABLE.context[0].oLanguage.sEmptyTable = archived ? I18n.t('repositories.show.no_archived_items') : I18n.t('repositories.show.no_items');
|
||||
TABLE.context[0].oLanguage.sZeroRecords = archived ? I18n.t('repositories.show.no_archived_items_matched') : I18n.t('repositories.show.no_items_matched');
|
||||
animateSpinner(this);
|
||||
$('.record-info-link').off('click');
|
||||
},
|
||||
stateLoadCallback: function(settings, callback) {
|
||||
var repositoryId = $(TABLE_ID).data('repository-id');
|
||||
|
@ -864,6 +863,7 @@ var RepositoryDatatable = (function(global) {
|
|||
$(TABLE_ID).on('click', 'tbody td', function(ev) {
|
||||
// Skip if clicking on selector checkbox, edit icon or link
|
||||
if ($(ev.target).is('.row-reminders-icon, .repository-row-selector, .repository-row-edit-icon, a')) return;
|
||||
if ($(ev.target).parents().is('a')) return;
|
||||
|
||||
$(this).parent().find('.repository-row-selector').trigger('click');
|
||||
});
|
||||
|
|
|
@ -7,10 +7,8 @@
|
|||
i18n.t('repositories.item_card.repository_text_value.expand') }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="edit" ref="textRef" class="text-sn-dark-grey font-inter text-sm font-normal leading-5 overflow-y-auto"
|
||||
:class="{ 'max-h-[60px]': !contentExpanded,
|
||||
'max-h-[600px]': contentExpanded }">
|
||||
{{ edit }}
|
||||
<div v-if="view" v-html="view" ref="textRef" class="text-sn-dark-grey font-inter text-sm font-normal leading-5 overflow-y-auto"
|
||||
:class="{ 'max-h-[60px]': !contentExpanded, 'max-h-[600px]': contentExpanded }">
|
||||
</div>
|
||||
<div v-else class="text-sn-dark-grey font-inter text-sm font-normal leading-5">
|
||||
{{ i18n.t('repositories.item_card.repository_text_value.no_text') }}
|
||||
|
|
Loading…
Add table
Reference in a new issue