EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
image number muted text
Yuri Kuznetsov24cd1b3c5dd8
diff --git a/client/src/ui.js b/client/src/ui.jsindex 58e1c30cd1..34899051b1 100644--- a/client/src/ui.js+++ b/client/src/ui.js@@ -374,6 +374,16 @@ class Dialog {});}+ /**+ * Get a general container element.+ *+ * @return {HTMLDivElement}+ * @since 9.1.0+ */+ getElement() {+ return this.el;+ }+/*** Update the header text.*diff --git a/client/src/views/modals/image-preview.js b/client/src/views/modals/image-preview.jsindex 05eae2a124..2a6258cb78 100644--- a/client/src/views/modals/image-preview.js+++ b/client/src/views/modals/image-preview.js@@ -228,6 +228,14 @@ class ImagePreviewModalView extends ModalView {}if (this.isMultiple()) {+ /** @type {HTMLDivElement|null} */+ const titleElement = this.dialog.getElement().querySelector('.modal-header .modal-title');++ if (titleElement) {+ titleElement.classList.add('text-muted');+ titleElement.style.userSelect = 'none';+ }+this.dialog.setHeaderText((this.getImageIndex() + 1).toString());}