Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.1.2 #83

Merged
merged 3 commits into from
Jun 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 1.1.2
## Added
- translation
- file name into page title

## 1.1.1
## Added
- translation
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<description>ONLYOFFICE integration app enables users to edit Office documents within ONLYOFFICE from OwnCloud. This will create a new Open in ONLYOFFICE action within the document library for Office documents. This allows multiple users to collaborate in real time and to save back those changes to OwnCloud.</description>
<licence>AGPL</licence>
<author>Ascensio System SIA</author>
<version>1.1.1</version>
<version>1.1.2</version>
<namespace>Onlyoffice</namespace>
<types>
<filesystem/>
Expand Down
80 changes: 0 additions & 80 deletions appinfo/signature.json

This file was deleted.

25 changes: 25 additions & 0 deletions js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,31 @@
return;
}

var docIsChanged = null;
var docIsChangedTimeout = null;

var setPageTitle = function(event) {
clearTimeout(docIsChangedTimeout);

if (docIsChanged !== event.data) {
var titleChange = function () {
window.document.title = config.document.title + (event.data ? " *" : "") + ' - ' + oc_defaults.title;
docIsChanged = event.data;
};

if (event.data) {
titleChange();
} else {
docIsChangedTimeout = setTimeout(titleChange, 500);
}
}
};
setPageTitle(false);

config.events = {
"onDocumentStateChange": setPageTitle,
};

var docEditor = new DocsAPI.DocEditor("iframeEditor", config);
}
}
Expand Down
Loading