Skip to content

Commit c3562d2

Browse files
committed
fixed file component
1 parent 46b36bf commit c3562d2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

arc/js/entries/base.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,20 @@ Entry.prototype.btn = function(name, icon) {
6767
}
6868

6969
Entry.prototype.input = function(type, with_value) {
70-
return '<div class="input-group mif">' +
70+
return '<div ' + ( type != 'file' ? 'class="input-group mif"' : '' ) + '>' +
7171
'<input ' +
72-
'class="form-control" ' +
72+
( type != 'file' ? 'class="form-control" ' : ' ' )+
7373
'data-entry-type="' + this.type + '" ' +
7474
'type="' + type + '" ' +
7575
'name="' + this.id + '" ' +
7676
'id="' + this.id + '" ' +
7777
'value="' + ( with_value ? this.safeValue() : '' ) + '"' +
7878
( type == 'file' ? 'multiple' : '' ) +
7979
'/>' +
80+
( type != 'file' ?
8081
'<span class="input-group-btn">' +
8182
this.btn( 'copy', 'clipboard' ) +
82-
'</span>' +
83+
'</span>' : '' ) +
8384
'</div>';
8485
}
8586

0 commit comments

Comments
 (0)