From 81decdce7b48e7dd8742c8bca7519e5ead011988 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Wed, 16 Aug 2017 12:36:17 +0200
Subject: [PATCH] reopening edit project window has working tabs

---
 frontend-js/src/main/js/gui/admin/EditProjectDialog.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/frontend-js/src/main/js/gui/admin/EditProjectDialog.js b/frontend-js/src/main/js/gui/admin/EditProjectDialog.js
index d5a64cd81c..da8a57fb20 100644
--- a/frontend-js/src/main/js/gui/admin/EditProjectDialog.js
+++ b/frontend-js/src/main/js/gui/admin/EditProjectDialog.js
@@ -373,6 +373,10 @@ EditProjectDialog.prototype.open = function() {
       title : self.getProject().getProjectId(),
       width : window.innerWidth / 2,
       height : window.innerHeight / 2,
+      modal : true,
+      close : function(event, ui) {
+        $(this).dialog('destroy').remove();
+      },
     });
   }
   $(div).dialog("open");
@@ -403,7 +407,8 @@ EditProjectDialog.prototype.onSaveClicked = function() {
   return ServerConnector.updateProject(project);
 };
 EditProjectDialog.prototype.close = function() {
-  $(this.getElement()).dialog("close");
+  var self = this;
+  $(self.getElement()).dialog("close");
 };
 
 EditProjectDialog.prototype.saveOverlay = function(overlayId) {
-- 
GitLab