Skip to content

Commit

Permalink
Merge pull request #83 from ONLYOFFICE/develop
Browse files Browse the repository at this point in the history
Release/1.1.2
  • Loading branch information
LinneyS authored Jun 21, 2017
2 parents 384e098 + ce89048 commit bccf921
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 81 deletions.
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

0 comments on commit bccf921

Please sign in to comment.