Use provided mimetype on open. Fix #4696

This commit is contained in:
Thomas Tanghus 2013-09-02 23:53:45 +02:00
parent 431cf06e99
commit 53a7f80ac3
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ var OCdialogs = {
self.$filePicker = $tmpl.octemplate({
dialog_name: dialog_name,
title: title
}).data('path', '');
}).data('path', '').data('multiselect', multiselect).data('mimetype', mimetype_filter);
if (modal === undefined) {
modal = false;
@ -100,7 +100,7 @@ var OCdialogs = {
self._handlePickerClick(event, $(this));
});
self._fillFilePicker('');
}).data('multiselect', multiselect).data('mimetype',mimetype_filter);
});
// build buttons
var functionToCall = function() {