diff options
Diffstat (limited to 'js/settings.js')
-rw-r--r-- | js/settings.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/settings.js b/js/settings.js index b1f81410e..910eefdaa 100644 --- a/js/settings.js +++ b/js/settings.js @@ -47,6 +47,7 @@ News={ } $('#browsebtn, #cloudbtn, #importbtn').hide(); + $('#cloudbtn, #cloudlink').click(function() { /* * it needs to be filtered by MIME type, but there are too many MIME types corresponding to opml @@ -54,12 +55,15 @@ $('#cloudbtn, #cloudlink').click(function() { */ OC.dialogs.filepicker(t('news', 'Select file'), News.Settings.cloudFileSelected, false, '', true); }); + $('#browsebtn, #browselink').click(function() { $('#file_upload_start').trigger('click'); }); + $('#file_upload_start').change(function() { News.Settings.browseFile(this.files); }); + $('#importbtn').click(function() { News.Settings.import(this); }); |