support filter file extension in open file dialog
This commit is contained in:
parent
c8229e93cf
commit
6bab712d54
|
@ -73,6 +73,10 @@
|
|||
element = angular.element('<input type="file" style="display: none"/>');
|
||||
}
|
||||
|
||||
if (options.fileFilter) {
|
||||
element.attr('accept', options.fileFilter);
|
||||
}
|
||||
|
||||
element.val('');
|
||||
|
||||
if (element.attr('data-ariang-file-initialized') !== 'true') {
|
||||
|
|
Reference in a new issue