From af74280849b56be4902d91955d669570d5739041 Mon Sep 17 00:00:00 2001 From: Alexandr Fedorov Date: Mon, 18 Jan 2021 12:07:09 +0300 Subject: [PATCH 1/3] fix refresh page --- .../css/onlyoffice-confluence-plugin-filecreate.css | 4 ++-- src/main/resources/js/onlyoffice-filecreate.js | 8 ++++---- src/main/resources/templates/dialog-filecreate.soy | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/resources/css/onlyoffice-confluence-plugin-filecreate.css b/src/main/resources/css/onlyoffice-confluence-plugin-filecreate.css index f423a0bf..544c5e09 100644 --- a/src/main/resources/css/onlyoffice-confluence-plugin-filecreate.css +++ b/src/main/resources/css/onlyoffice-confluence-plugin-filecreate.css @@ -55,7 +55,7 @@ background-image: url(images/new-pptx.svg); } -#inline-dialog-filecreate .filenameform{ +#inline-dialog-filecreate .filename{ padding: 0px!important; } @@ -79,7 +79,7 @@ margin: 0px; } -#inline-dialog-filecreate .filenameform .input-name{ +#inline-dialog-filecreate .filename .input-name{ width: 120px; display: inline-block; margin-left: 5px; diff --git a/src/main/resources/js/onlyoffice-filecreate.js b/src/main/resources/js/onlyoffice-filecreate.js index 7487ab7a..c6bcaca0 100644 --- a/src/main/resources/js/onlyoffice-filecreate.js +++ b/src/main/resources/js/onlyoffice-filecreate.js @@ -42,10 +42,10 @@ AJS.toInit(function ($) { $(document).on("click", ".menuitem", function(event) { $(".menuitem").removeClass("active"); - $(".filenameform label").removeClass("hidden"); - $(".filenameform input").addClass("hidden"); - $(this).find(".filenameform label").addClass("hidden"); - $(this).find(".filenameform input").removeClass("hidden"); + $(".filename label").removeClass("hidden"); + $(".filename input").addClass("hidden"); + $(this).find(".filename label").addClass("hidden"); + $(this).find(".filename input").removeClass("hidden"); $(this).addClass("active"); }); diff --git a/src/main/resources/templates/dialog-filecreate.soy b/src/main/resources/templates/dialog-filecreate.soy index 4bf829e2..2e29b51d 100644 --- a/src/main/resources/templates/dialog-filecreate.soy +++ b/src/main/resources/templates/dialog-filecreate.soy @@ -11,8 +11,8 @@