Use chosen on the MonitorIds select.

This commit is contained in:
Isaac Connor 2018-01-29 10:29:59 -05:00
parent 8c4a786114
commit 0b2d752ea4
1 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,7 @@ echo htmlSelect( 'newGroup[ParentId]', $options, $newGroup->ParentId(), array('o
<tr>
<th scope="row"><?php echo translate('Monitor') ?></th>
<td>
<select name="newGroup[MonitorIds][]" size="4" multiple="multiple" onchange="configureButtons(this);">
<select name="newGroup[MonitorIds][]" class="chosen" multiple="multiple" onchange="configureButtons(this);">
<?php
$monitors = dbFetchAll( 'SELECT Id,Name FROM Monitors ORDER BY Sequence ASC' );
$monitorIds = $newGroup->MonitorIds();
@ -127,4 +127,7 @@ echo htmlSelect( 'newGroup[ParentId]', $options, $newGroup->ParentId(), array('o
</div>
</div>
</body>
<script type="text/javascript">
$j('.chosen').chosen();
</script>
</html>