359 Commits

Author SHA1 Message Date
Pranav Kant
c80a31ebe0 $.getJSON already returns a promise like object
... so no need to create a deferred object separately and then
resolve it manually. This is since jquery 1.5

See: https://api.jquery.com/jquery.getjson/
2016-06-29 21:12:15 +05:30
Pranav Kant
f3e7211ee5 Add Handlebars to global 2016-06-29 19:43:10 +05:30
Pranav Kant
58f9b4c5b4 Explicitly ask for revision history option
... since loleaflet explicitly requires it now if revision
history option is required.
2016-06-29 17:42:18 +05:30
Pranav Kant
50d1b609ba Move exist button to top right of revision sidebar 2016-06-28 17:00:58 +05:30
Pranav Kant
3235b886ad Add a revision history sidebar 2016-06-28 14:24:26 +05:30
Andras Timar
750e50108a remove unused js (WebODF) 2016-06-26 19:17:12 +02:00
Andras Timar
446372c0cb this string is not localizable 2016-06-26 17:12:52 +02:00
Pranav Kant
87f7720d12 Remove unused method
See 2b302fa1af99ccc05c38c9b29f57570e3a52fac2
2016-06-23 14:50:28 +05:30
Pranav Kant
8e56d58ff7 bccu#1882: Return to where user started by removing redundant call
Route /close/ doesn't mean anything, and we were making this
additional call always before closing the document. This had a
side-effect that sometimes /close/ call would be processed after
we assign returnToDir to window.location making browser always
stuck in richdocuments#index rather than reeturnToDir. This was
mainly the problem in firefox with owncloud9
2016-06-23 13:25:44 +05:30
Andras Timar
9a62fcfe7d remove WebODF l10n 2016-06-22 08:55:54 +02:00
Pranav Kant
bb01949a9a Use new owncloud9 addMenuEntry plugin
... to add new odf files from main 'Files' app
2016-06-15 22:38:08 +05:30
Pranav Kant
04a3bacb4d give focus explicitly to loleafletframe after loading
This is mainly problem in firefox where sometime, key press
events are handled by the browser, but we do not want that.
2016-06-14 11:03:55 +05:30
Pranav Kant
b138109820 Don't load all documents when only one is clicked on from 'Files' 2016-06-09 20:17:36 +05:30
Jan Holesovsky
68b81e846b bccu#1882: Return to the 'Files' app when the editing started there.
Also retain the directory where the editing started.
2016-06-07 12:12:23 +02:00
Andras Timar
e22151a2b5 Pass the lang paramater to loleaflet from ownCloud user settings, which controls UI language 2016-05-29 00:16:27 +02:00
Andras Timar
cdc6d2dffc add tooltip with document path for icon view 2016-04-20 14:31:18 +02:00
Henry Castro
efcf28abc2 Add ulrsrc attribute when create new documents 2016-04-16 17:41:43 -04:00
Jan Holesovsky
e94fa64836 One more place where we need to present the error message. 2016-04-15 17:24:30 +02:00
Jan Holesovsky
ea47464459 More improvements in the error handling. 2016-04-15 16:55:15 +02:00
Jan Holesovsky
b48ae81a99 Small improvement in the documentation. 2016-04-13 19:24:01 +02:00
Jan Holesovsky
f2974bd618 Adapt to changes in loolwsd - pass only access_token via form post.
Also limit the amount of stuff that actually needs to be passed, and add
comments.
2016-04-13 19:07:37 +02:00
Pranav Kant
41f2f63907 Do not show scary warning dialog
... since we save to disk on abnormal client termination.
2016-04-13 12:04:04 +05:30
Henry Castro
a27950d617 Post WOPI url iframe 2016-04-07 17:53:15 -04:00
Pranav Kant
c25de38ef5 Rename filename -> title 2016-04-01 21:34:44 +05:30
Pranav Kant
96c88b5a1e Use window.postMessage API for cross-domain frame communication
Use filename as additional param to let the child frame know the
name of the document easily.

Use closebutton param to instruct the child frame about whether
to show the close button, or not.
2016-04-01 18:34:04 +05:30
Ashod Nakashian
1a737b4f07 wopi: pass the url wopi without /contents, to make it more flexible 2016-03-23 21:58:13 -04:00
Andras Timar
f3eaa1683d use SSL 2016-03-23 22:03:39 +01:00
Henry Castro
81ba6a184e Fix close button bug 2016-03-17 15:09:27 -04:00
Henry Castro
b135ad4a5c Add WOPISrc parameter 2016-03-16 09:05:33 -04:00
Andras Timar
a32c1e2be3 remove unused webODF unstable setting 2016-03-15 00:23:17 +01:00
Andras Timar
f0f3e42c0e remove dead code (from Collabora Online perspective) 2016-03-14 23:34:29 +01:00
Henry Castro
3a2d2a219f JS handle urlsrc attribute 2016-03-10 10:41:07 -04:00
Ashod Nakashian
30a22ef7e7 WOPI GetFile and PutFile added and document loader updated 2016-03-09 08:42:47 -05:00
Henry Castro
85f3079b47 Post WOPI url iframe 2016-03-05 18:57:23 -04:00
Henry Castro
08dbf236d9 Add WOPI client settings 2016-03-05 17:40:47 -04:00
Andras Timar
4afc1ed80a changed path of iframe, all is in loleaflet 2016-02-09 17:26:44 +01:00
Mihai Varga
fafd5e8cf7 loleaflet: use the permission init option 2016-01-12 15:24:39 +01:00
Faruk Uzun
2e6aef6e9b Fix "Download as ..." for wrong filenames
ccu#1367 - "Download as" links in File menu are downloading files
with a different filename like "ccs-fileID.ext".
2016-01-12 00:41:18 +02:00
Victor Dubiniuk
447610b260 Fix appid 2015-12-16 18:04:32 +03:00
Andras Timar
8010839279 bccu#1335 don't try to handle pdf, internal pdf.js does a better job 2015-11-15 19:12:45 +01:00
Jan Holesovsky
91e49449f3 cloudsuite: Cleanup when the document is closed. 2015-11-05 11:15:45 +01:00
Jan Holesovsky
6b3585dcc6 A bit of formatting + spaces -> tabs. 2015-11-05 10:02:45 +01:00
Jan Holesovsky
e6593def87 cloudsuite: Add buttons to create new spreadsheet and new presentation. 2015-11-04 21:49:23 +01:00
Jan Holesovsky
aa0a8f666a cloudsuite: Implement the saving back. 2015-11-04 13:15:22 +01:00
Jan Holesovsky
00befededb Less confusing variable names. 2015-11-04 10:30:16 +01:00
Jan Holesovsky
75dbb71b01 cloudsuite: Clean the last remnants of webodf from documents.js. 2015-11-04 10:08:50 +01:00
Mihai Varga
ddc34a60c3 bug #1261 - added microsoft document mime types 2015-11-04 10:12:30 +02:00
Mihai Varga
43bce2d00d added pdf,visio,svg,wordperfect mimetypes 2015-11-04 10:10:14 +02:00
Henry Castro
303e64682a cloudsuite: add missing function to avoid uncaught exception.
The upload requeries these functions.
2015-11-01 09:12:24 -04:00
Henry Castro
98a485d46f cloudsuite: add FileList.findfile 2015-10-31 18:21:59 -04:00