From 64d07cd574687eceb338bfe5a8fc457b22ded4a5 Mon Sep 17 00:00:00 2001 From: aynsix Date: Tue, 23 Jul 2024 14:31:05 +0300 Subject: [PATCH 1/2] fix expose publication description --- templates/web/prod/WorkZone/ExposeEdit.html.twig | 2 +- templates/web/prod/WorkZone/ExposeNew.html.twig | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/web/prod/WorkZone/ExposeEdit.html.twig b/templates/web/prod/WorkZone/ExposeEdit.html.twig index 5d5043fade..d1976932ba 100644 --- a/templates/web/prod/WorkZone/ExposeEdit.html.twig +++ b/templates/web/prod/WorkZone/ExposeEdit.html.twig @@ -397,9 +397,9 @@ success: function (data) { if (data.success) { publicationEdit.find("#pub-success").removeClass("hidden").html(data.message); - document.getElementById("publication-data-form-edit").reset(); setTimeout(function(){ $('#DIALOG-expose-edit').dialog('close'); + publicationEdit.find("#pub-success").addClass("hidden"); } , 2000 ); diff --git a/templates/web/prod/WorkZone/ExposeNew.html.twig b/templates/web/prod/WorkZone/ExposeNew.html.twig index f28fb035a3..4d29a1acc3 100644 --- a/templates/web/prod/WorkZone/ExposeNew.html.twig +++ b/templates/web/prod/WorkZone/ExposeNew.html.twig @@ -394,9 +394,11 @@ success: function (data) { if (data.success) { $("#DIALOG-expose-add #pub-success").removeClass("hidden").html(data.message + ": " + data.link); - document.getElementById("publication-data-form").reset(); + setTimeout(function(){ + document.getElementById("publication-data-form").reset(); $('#DIALOG-expose-add').dialog('close'); + $("#DIALOG-expose-add #pub-success").addClass("hidden"); } , 2000 ); From fab90eb02d90113c73102c2dad2c6c968396f967 Mon Sep 17 00:00:00 2001 From: aynsix Date: Thu, 8 Aug 2024 13:13:20 +0300 Subject: [PATCH 2/2] fix submit twice on expose cli --- .../web/prod/WorkZone/ExposeEdit.html.twig | 14 +++--- .../web/prod/WorkZone/ExposeNew.html.twig | 48 ++++++++++--------- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/templates/web/prod/WorkZone/ExposeEdit.html.twig b/templates/web/prod/WorkZone/ExposeEdit.html.twig index d1976932ba..edb9388c28 100644 --- a/templates/web/prod/WorkZone/ExposeEdit.html.twig +++ b/templates/web/prod/WorkZone/ExposeEdit.html.twig @@ -28,22 +28,22 @@
- - + +
- +
- +
- +
{% if publication.parent.id %} {% set parentId = publication.parent.id %} @@ -60,7 +60,7 @@ {% if publication.capabilities.operator %}
- + {% set nbProfile = publication.profile|length %} + +
- +
- +
- +
- - +
- - +
- - +
-
- +
- +
-
+
{#

{{ 'prod:expose:publication:Advanced setting' | trans }}

#}