From badc56f0485eadd653d0f226b180861ebae6b107 Mon Sep 17 00:00:00 2001
From: Sebastien Curt <sebastien.curt@tetras-libre.fr>
Date: Wed, 4 May 2022 11:05:45 +0200
Subject: [PATCH] Fix edit popup link edition

---
 capsule-prototype/js/PopupPanelWidget.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/capsule-prototype/js/PopupPanelWidget.js b/capsule-prototype/js/PopupPanelWidget.js
index 149e3c5..ad296ed 100644
--- a/capsule-prototype/js/PopupPanelWidget.js
+++ b/capsule-prototype/js/PopupPanelWidget.js
@@ -188,7 +188,7 @@ TCPanelInputEditor.prototype.appendInputEditorDiv = function (parentDiv) {
             event.stopPropagation();
             that.openEdition.call(that);
         })
-        .css("background", that.tag.color);;
+        .css("background", that.tag.color);
 
     this.popupTcInDiv = $('<div>');
     this.popupTcInDiv
@@ -426,6 +426,7 @@ LinkPanelInputEditor.prototype.appendInputEditorDiv = function (parentDiv) {
                     that.closeEdition();
                 }
             })
+            .val(linkValue)
             .hide();
 
         parentDiv.append(this.editDiv);
@@ -736,7 +737,6 @@ function PopupPanelWidget(data) {
     this.currentOpenedInput = undefined;
     this.videoWasPlayingOnContentCreation = false;
 }
-
 PopupPanelWidget.prototype.getCurrentOpenedInput = function () {
     return this.currentOpenedInput;
 }
@@ -931,12 +931,10 @@ PopupPanelWidget.prototype.createPopupContent = function (tag) {
         that.ensureLastOpenedEditionClosed();
     });
 }
-
 PopupPanelWidget.prototype.show = function() {
     $("#popupSpace").show();
     $("#popupEdit").show();
 }
-
 PopupPanelWidget.prototype.close = function() {
     this.ensureLastOpenedEditionClosed();
     $("#popupSpace").hide();
-- 
GitLab