Skip to content
Snippets Groups Projects
Commit 53a7f80a authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Use provided mimetype on open. Fix #4696

parent 431cf06e
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ var OCdialogs = { ...@@ -77,7 +77,7 @@ var OCdialogs = {
self.$filePicker = $tmpl.octemplate({ self.$filePicker = $tmpl.octemplate({
dialog_name: dialog_name, dialog_name: dialog_name,
title: title title: title
}).data('path', ''); }).data('path', '').data('multiselect', multiselect).data('mimetype', mimetype_filter);
if (modal === undefined) { if (modal === undefined) {
modal = false; modal = false;
...@@ -100,7 +100,7 @@ var OCdialogs = { ...@@ -100,7 +100,7 @@ var OCdialogs = {
self._handlePickerClick(event, $(this)); self._handlePickerClick(event, $(this));
}); });
self._fillFilePicker(''); self._fillFilePicker('');
}).data('multiselect', multiselect).data('mimetype',mimetype_filter); });
// build buttons // build buttons
var functionToCall = function() { var functionToCall = function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment