Skip to content

Instantly share code, notes, and snippets.

@atsu666
Created August 28, 2019 07:08
Show Gist options
  • Save atsu666/215aef88e39c2836e5f15871fe052ff1 to your computer and use it in GitHub Desktop.
Save atsu666/215aef88e39c2836e5f15871fe052ff1 to your computer and use it in GitHub Desktop.
<!-- BEGIN_MODULE Touch_Entry -->
<!-- BEGIN_MODULE Touch_SessionWithContribution -->
<script>
ACMS.addListener('acmsDialogOpened', function () {
<!-- BEGIN_MODULE Config -->
(function () {
<!-- BEGIN_IF [{entry_edit_status_label}/nem] -->
$('#entry-status-label').html("{entry_edit_status_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_title_label}/nem] -->
$('#entry-title-label').html("{entry_edit_title_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_category_label}/nem] -->
$('#entry-category-label').html("{entry_edit_category_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_sub_category_label}/nem] -->
$('#entry-sub-category-label').html("{entry_edit_sub_category_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_tag_label}/nem] -->
$('#entry-tag-label').html("{entry_edit_tag_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_date_label}/nem] -->
$('#entry-date-label').html("{entry_edit_date_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_file_name_label}/nem] -->
$('#entry-file-name-label').html("{entry_edit_file_name_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_start_date_label}/nem] -->
$('#entry-start-date-label').html("{entry_edit_start_date_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_end_date_label}/nem] -->
$('#entry-end-date-label').html("{entry_edit_end_date_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_summary_range_label}/nem] -->
$('#entry-summary-range-label').html("{entry_edit_summary_range_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_indexing_label}/nem] -->
$('#entry-indexing-label').html("{entry_edit_indexing_label}");
<!-- END_IF -->
<!-- BEGIN_IF [{entry_edit_link_url_label}/nem] -->
$('#entry-link-url-label').html("{entry_edit_link_url_label}");
<!-- END_IF -->
var flag = false;
var $table = $('#js-entry-detail-table');
$table.find('tbody > tr').each(function () {
if ($(this).css('display') !== 'none') {
flag = true;
}
});
if (!flag) {
$table.css('display', 'none');
}
})();
<!-- END_MODULE Config -->
});
</script>
<!-- END_MODULE Touch_SessionWithContribution -->
<!-- END_MODULE Touch_Entry -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment