cloudsuite: Set editing as the default action.
This commit is contained in:
parent
302317ca47
commit
6e8cf39068
@ -2,16 +2,15 @@
|
|||||||
var odfViewer = {
|
var odfViewer = {
|
||||||
isDocuments : false,
|
isDocuments : false,
|
||||||
supportedMimesRead: [
|
supportedMimesRead: [
|
||||||
|
],
|
||||||
|
|
||||||
|
supportedMimesUpdate: [
|
||||||
'application/vnd.oasis.opendocument.text',
|
'application/vnd.oasis.opendocument.text',
|
||||||
'application/vnd.oasis.opendocument.spreadsheet',
|
'application/vnd.oasis.opendocument.spreadsheet',
|
||||||
'application/vnd.oasis.opendocument.graphics',
|
'application/vnd.oasis.opendocument.graphics',
|
||||||
'application/vnd.oasis.opendocument.presentation'
|
'application/vnd.oasis.opendocument.presentation'
|
||||||
],
|
],
|
||||||
|
|
||||||
supportedMimesUpdate: [
|
|
||||||
'application/vnd.oasis.opendocument.text'
|
|
||||||
],
|
|
||||||
|
|
||||||
register : function(response){
|
register : function(response){
|
||||||
var i,
|
var i,
|
||||||
mimeRead,
|
mimeRead,
|
||||||
@ -38,6 +37,7 @@ var odfViewer = {
|
|||||||
odfViewer.onEdit,
|
odfViewer.onEdit,
|
||||||
t('documents', 'Edit')
|
t('documents', 'Edit')
|
||||||
);
|
);
|
||||||
|
OCA.Files.fileActions.setDefault(mimeUpdate, 'Edit');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -61,7 +61,9 @@ var odfViewer = {
|
|||||||
|
|
||||||
FileList.setViewerMode(true);
|
FileList.setViewerMode(true);
|
||||||
|
|
||||||
// TODO replace file_path = documentsMain.url
|
// TODO call something like in the onEdit case; or do we want
|
||||||
|
// view-only at all?
|
||||||
|
/*
|
||||||
var viewer = window.location.protocol + '//' + window.location.host + '/cloudsuite/cloudsuite.html?' +
|
var viewer = window.location.protocol + '//' + window.location.host + '/cloudsuite/cloudsuite.html?' +
|
||||||
'file_path=' + context.dir + '/' + filename +
|
'file_path=' + context.dir + '/' + filename +
|
||||||
'&host=' + 'ws://' + window.location.hostname + ':9980' +
|
'&host=' + 'ws://' + window.location.hostname + ':9980' +
|
||||||
@ -77,6 +79,7 @@ var odfViewer = {
|
|||||||
odfViewer.onClose();
|
odfViewer.onClose();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
|
|
||||||
onClose: function() {
|
onClose: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user