diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-01-10 19:36:51 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-01-10 19:36:51 +0400 |
commit | 768deff1c84790734c943be50223ade055642e4b (patch) | |
tree | fcbe5f04405d642e0552166630a58915a55a675f /js | |
parent | ee02e7c23c2c310dee8ac4ae5cf4d8cbcc06516e (diff) |
Removed useless files list update
The file list update is done already by calling FileList.reload() when
leaving the editor.
Also, it's not the responsibility of the editor to touch the file list.
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/js/editor.js b/js/editor.js index d34c824..30d331d 100644 --- a/js/editor.js +++ b/js/editor.js @@ -160,13 +160,6 @@ function doFileSave() { $('#editor').attr('data-mtime', jsondata.data.mtime); $('#editor_save').text(t('files_texteditor', 'Save')); $("#editor_save").live('click', doFileSave); - // Update size - if ($('#dir').val() === $('#editor').attr('data-dir')) { - var tr = $('tr[data-file="'+$('#editor').attr('data-filename')+'"]'); - tr.attr('data-size', jsondata.data.size); - tr.find('.filesize').text(humanFileSize(jsondata.data.size)); - // TODO change opacity according to filesize - } // Update titles $('#editor').attr('data-edited', 'false'); $('.crumb.last a').text($('#editor').attr('data-filename')); |