Skip to content

Commit 456659d

Browse files
authored
Added chosen search to reqTcAssign (#290)
* Added chosen search to reqTcAssign * Width of select fixed
1 parent b3004c6 commit 456659d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

gui/templates/tl-classic/requirements/reqTcAssign.tpl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ function refreshAndClose(tcase_id,callback) {
5858
{$msgReqLinkingEnabled = $labels.reqLinkingDisabledAfterExec}
5959
{/if}
6060

61-
62-
6361
<body>
6462
{$sep = $smarty.const.TITLE_SEP}
6563
{$tcIdentity = "{$gui->tcTitle|escape} "}
@@ -83,9 +81,10 @@ function refreshAndClose(tcase_id,callback) {
8381
{/if}
8482

8583
<p><span class="labelHolder">{$labels.req_spec}</span>
86-
<select name="idSRS" id="idSRS" onchange="form.submit()">
84+
<select name="idSRS" id="idSRS" class="idSRS" onchange="form.submit()">
85+
<option></option>
8786
{html_options options=$gui->arrReqSpec selected=$gui->selectedReqSpec}
88-
</select>
87+
</select></p>
8988
</form>
9089
{if $gui->showCloseButton}
9190
<form name="closeMeTop">
@@ -239,5 +238,11 @@ function refreshAndClose(tcase_id,callback) {
239238
</div>
240239
</form>
241240
{/if}
241+
242+
<script type="text/javascript">
243+
jQuery( document ).ready(function() {
244+
jQuery(".idSRS").chosen({ width: "70%", search_contains: true });
245+
});
246+
</script>
242247
</body>
243-
</html>
248+
</html>

0 commit comments

Comments
 (0)