Skip to content

Commit

Permalink
Merge pull request #28 from ONLYOFFICE/hotfix/4.2.1
Browse files Browse the repository at this point in the history
Hotfix/4.2.1
  • Loading branch information
LinneyS authored Jan 18, 2021
2 parents c506eff + 852f916 commit 94fbd67
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 2.4.1
## Changed
- fixed page refresh on creation

# 2.4.0
## Added
- Ability to create documents
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>onlyoffice</groupId>
<artifactId>onlyoffice-confluence-plugin</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>

<organization>
<name>Ascensio System SIA</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
background-image: url(images/new-pptx.svg);
}

#inline-dialog-filecreate .filenameform{
#inline-dialog-filecreate .filename{
padding: 0px!important;
}

Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/js/onlyoffice-filecreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/dialog-filecreate.soy
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<li>
<div class="menuitem">
<span class="icon icon-onlyoffice-new-{$key}"></span>
<form class="aui" target="_blank" action="{contextPath()}/plugins/servlet/onlyoffice/doceditor">
<div class="field-group filenameform">
<form class="aui filenameform" target="_blank" action="{contextPath()}/plugins/servlet/onlyoffice/doceditor">
<div class="field-group filename">
<label class="displayname">{$extensions[$key]}</label>
<input id="view-input-{$key}" name="fileName" class="text input-name hidden" type="text" value="{$extensions[$key]}" maxlength="216" autocomplete="off" autocapitalize="off">
<input name="fileExt" value="{$key}" type="hidden">
Expand Down

0 comments on commit 94fbd67

Please sign in to comment.