Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-31692: Hide tooltip after show/hide details of content #1415

Merged
merged 1 commit into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/bundle/Resources/public/js/scripts/admin.content.edit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function(global, doc, eZ) {
(function (global, doc, eZ) {
const enterKeyCode = 13;
const inputTypeToPreventSubmit = [
'checkbox',
Expand Down Expand Up @@ -95,6 +95,7 @@
if (itemAuthorToggler) {
itemAuthorToggler.addEventListener('click', (event) => {
event.preventDefault();
eZ.helpers.tooltips.hideAll();

itemAuthorToggler.classList.toggle('ez-details-items__toggler--gray');
itemAuthor.classList.toggle('ez-details-items--collapsed');
Expand Down
5 changes: 5 additions & 0 deletions src/bundle/Resources/translations/content_edit.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
<target state="new">Location ID: %locationId%</target>
<note>key: location_id</note>
</trans-unit>
<trans-unit id="b50bb4a4a1f5081a047f89673318ef4e24fd1fdb" resname="more_info">
<source>More info</source>
<target state="new">More info</target>
<note>key: more_info</note>
</trans-unit>
<trans-unit id="32d50c07b2eacd6fa72742ff1c1f5963c26a251d" resname="new_content_item">
<source>New %contentType%</source>
<target state="new">New %contentType%</target>
Expand Down
16 changes: 8 additions & 8 deletions src/bundle/Resources/translations/validators.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<note>key: ez.content_type.identifier.pattern</note>
</trans-unit>
<trans-unit id="e03cdf7df4e43a891269e0bbe734e7bab5cc61eb" resname="ez.content_type.identifier.unique">
<source>The Content Type identifier "%identifier%" is used by another Content Type. Enter a unique identifier.</source>
<target>The Content Type identifier "%identifier%" is used by another Content Type. Enter a unique identifier.</target>
<note>key: ez.content_type.identifier.unique</note>
<source>The Content Type identifier "%identifier%" is used by another Content Type. Enter a unique identifier.</source>
<target>The Content Type identifier "%identifier%" is used by another Content Type. Enter a unique identifier.</target>
<note>key: ez.content_type.identifier.unique</note>
</trans-unit>
<trans-unit id="7ecfa6bd2c1993d18d067f3abe3acebeb9c2458c" resname="ez.content_type.names">
<source>Content Type name cannot be blank and cannot be longer than 255 characters.</source>
Expand All @@ -31,16 +31,16 @@
<target state="new">Field definition description cannot be longer than 255 characters.</target>
<note>key: ez.field_definition.descriptions</note>
</trans-unit>
<trans-unit id="3c8e362f900d886ce75b34d0fd952128612a2b12" resname="ez.field_definition.identifier.unique">
<source>The Field definition identifier "%identifier%" is used by another Field definition. Enter a unique identifier.</source>
<target>The Field definition identifier "%identifier%" is used by another Field definition. Enter a unique identifier..</target>
<note>key: ez.field_definition.identifier.unique</note>
</trans-unit>
<trans-unit id="0f7d936836760a506042c4d25cd38c5a30c3d9de" resname="ez.field_definition.names">
<source>Field definition name cannot be blank cannot be longer than 255 characters.</source>
<target state="new">Field definition name cannot be blank cannot be longer than 255 characters.</target>
<note>key: ez.field_definition.names</note>
</trans-unit>
<trans-unit id="3c8e362f900d886ce75b34d0fd952128612a2b12" resname="ez.field_definition.identifier.unique">
<source>The Field definition identifier "%identifier%" is used by another Field definition. Enter a unique identifier.</source>
<target>The Field definition identifier "%identifier%" is used by another Field definition. Enter a unique identifier..</target>
<note>key: ez.field_definition.identifier.unique</note>
</trans-unit>
<trans-unit id="924826be1015d20c1f4524754c690e10935abaac" resname="ez.section.identifier.format">
<source>Section identifier may only contain letters from "a" to "z", numbers and underscores.</source>
<target state="new">Section identifier may only contain letters from "a" to "z", numbers and underscores.</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<span class="ez-badge ez-badge--small ez-details-items__pill ez-details-items__pill--location">%location_name%</span>')
|raw
}}
<a class="ez-details-items__toggler ez-details-items__toggler--gray" href="#">?</a>
<a class="ez-details-items__toggler ez-details-items__toggler--gray" href="#" title="{{ 'more_info'|trans|desc('More info') }}">?</a>
</div>
<div class="container ez-details-items ez-details-items--collapsed ez-details-items__author-breadcrumbs">
{{ content_type.name }}/
Expand Down