Skip to content

Commit fdfd6f8

Browse files
author
Paulo Gomes
committed
fix typo
1 parent 90a34cd commit fdfd6f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/Cockpit/assets/components.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ riot.tag2('field-asset', '<div ref="uploadprogress" class="uk-margin uk-hidden">
18721872
action: App.route('/assetsmanager/upload'),
18731873
type: 'json',
18741874
filelimit: 1,
1875-
allow: (this.opts.upload && this.opts.upload.allow) || '*.*',
1875+
allow: $this.pattern,
18761876
before: function(options) {
18771877

18781878
},

modules/Cockpit/assets/components/field-asset.tag

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
action: App.route('/assetsmanager/upload'),
9090
type: 'json',
9191
filelimit: 1,
92-
allow: (this.opts.upload && this.opts.upload.allow) || '*.*',
92+
allow: $this.pattern,
9393
before: function(options) {
9494

9595
},

0 commit comments

Comments
 (0)