Skip to content

Commit c61c110

Browse files
author
minjk-bl
committed
Fix bug - Apps > File
1 parent 3660a0e commit c61c110

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

html/m_apps/file.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
<div class="vp-accordian vp-open"><span class="vp-indicator"></span><span class="vp-accordian-caption" data-caption-id="TODO:Variable">Required Input & Output</span></div>
1515
<div id="vp_inputOutputBox" class="vp-accordian-box">
1616
<table class="vp-option-table">
17-
<colgroup><col width="30%"/><col width="*"/></colgroup>
17+
<colgroup><col width="40%"/><col width="*"/></colgroup>
18+
<tbody></tbody>
1819
</table>
1920
</div>
2021
</div>
2122
<div class="vp-accordian-container vp-accordion-gray-color">
2223
<div class="vp-accordian vp-open"><span class="vp-indicator"></span><span class="vp-accordian-caption" data-caption-id="TODO:Variable">Additional Options</span></div>
2324
<div id="vp_optionBox" class="vp-accordian-box">
2425
<table class="vp-option-table">
25-
<colgroup><col width="30%"/><col width="*"/></colgroup>
26-
26+
<colgroup><col width="40%"/><col width="*"/></colgroup>
27+
<tbody></tbody>
2728
</table>
2829
</div>
2930
</div>
@@ -37,16 +38,17 @@
3738
<div class="vp-accordian vp-open"><span class="vp-indicator"></span><span class="vp-accordian-caption" data-caption-id="TODO:Variable">Required Input & Output</span></div>
3839
<div id="vp_inputOutputBox" class="vp-accordian-box">
3940
<table class="vp-option-table">
40-
<colgroup><col width="30%"/><col width="*"/></colgroup>
41+
<colgroup><col width="40%"/><col width="*"/></colgroup>
42+
<tbody></tbody>
4143
</table>
4244
</div>
4345
</div>
4446
<div class="vp-accordian-container vp-accordian-gray-color">
4547
<div class="vp-accordian vp-open"><span class="vp-indicator"></span><span class="vp-accordian-caption" data-caption-id="TODO:Variable">Additional Options</span></div>
4648
<div id="vp_optionBox" class="vp-accordian-box">
4749
<table class="vp-option-table">
48-
<colgroup><col width="30%"/><col width="*"/></colgroup>
49-
50+
<colgroup><col width="40%"/><col width="*"/></colgroup>
51+
<tbody></tbody>
5052
</table>
5153
</div>
5254
</div>

js/m_apps/File.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ define([
245245
var prefix = '#vp_file' + pageType + ' ';
246246

247247
// clear
248-
$(this.wrapSelector(prefix + '#vp_inputOutputBox table')).html('<colgroup><col width="40%"/><col width="*"/></colgroup>');
249-
$(this.wrapSelector(prefix + '#vp_optionBox table')).html('<colgroup><col width="40%"/><col width="*"/></colgroup>');
248+
$(this.wrapSelector(prefix + '#vp_inputOutputBox table tbody')).html('');
249+
$(this.wrapSelector(prefix + '#vp_optionBox table tbody')).html('');
250250

251251
var fileTypeObj = this.fileState[pageType]['fileTypeId'];
252252
var selectedType = this.fileState[pageType]['selectedType'];
@@ -273,7 +273,7 @@ define([
273273
pdGen.vp_showInterfaceOnPage(this.wrapSelector('#vp_file' + pageType), thisPkg);
274274

275275
// prepend file type selector
276-
$(this.wrapSelector(prefix + '#vp_inputOutputBox table')).prepend(
276+
$(this.wrapSelector(prefix + '#vp_inputOutputBox table tbody')).prepend(
277277
$('<tr>').append($(`<td><label for="fileType" class="vp-orange-text">File Type</label></td>`))
278278
.append($('<td><select id="fileType" class="vp-select"></select></td>'))
279279
);
@@ -292,7 +292,7 @@ define([
292292
.append($('<td><input id="userOption" type="text" class="vp-input vp-state" placeholder="key=value, ..."/></td>'))
293293
)
294294
} else {
295-
$(this.wrapSelector(prefix + '#vp_inputOutputBox table')).append(
295+
$(this.wrapSelector(prefix + '#vp_inputOutputBox table tbody')).append(
296296
$('<tr>').append($(`<td><label for="userOption">User Option</label></td>`))
297297
.append($('<td><input id="userOption" type="text" class="vp-input vp-state" placeholder="key=value, ..."/></td>'))
298298
)

0 commit comments

Comments
 (0)