Small fixes to sharing overview
- Removed file size from file summary in sharing overview - Fixed document title - Fixed empty content text for shared overview
This commit is contained in:
parent
06e53b359a
commit
fa32243d84
|
@ -28,6 +28,9 @@ OCA.Sharing.App = {
|
|||
);
|
||||
|
||||
this._initFileActions(this._inFileList);
|
||||
this._extendFileList(this._inFileList);
|
||||
this._inFileList.appName = t('files_sharing', 'Shared with you');
|
||||
this._inFileList.$el.find('#emptycontent').text(t('files_sharing', 'No files have been shared with you yet.'));
|
||||
},
|
||||
|
||||
initSharingOut: function($el) {
|
||||
|
@ -43,6 +46,9 @@ OCA.Sharing.App = {
|
|||
);
|
||||
|
||||
this._initFileActions(this._outFileList);
|
||||
this._extendFileList(this._outFileList);
|
||||
this._outFileList.appName = t('files_sharing', 'Shared with others');
|
||||
this._outFileList.$el.find('#emptycontent').text(t('files_sharing', 'You haven\'t shared any files yet.'));
|
||||
},
|
||||
|
||||
_initFileActions: function(fileList) {
|
||||
|
@ -54,6 +60,11 @@ OCA.Sharing.App = {
|
|||
OCA.Files.App.fileList.changeDirectory(context.$file.attr('data-path') + '/' + filename, true, true);
|
||||
});
|
||||
fileList.setFileActions(fileActions);
|
||||
},
|
||||
|
||||
_extendFileList: function(fileList) {
|
||||
// remove size column from summary
|
||||
fileList.fileSummary.$el.find('.filesize').remove();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</div>
|
||||
<div id='notification'></div>
|
||||
|
||||
<div id="emptycontent" class="hidden"><?php p($l->t('Nothing in here.'))?></div>
|
||||
<div id="emptycontent" class="hidden"></div>
|
||||
|
||||
<input type="hidden" name="dir" value="" id="dir">
|
||||
|
||||
|
|
Loading…
Reference in New Issue