Skip to content

Commit

Permalink
UI-1351: Use chosen plugin to list users in feature keys
Browse files Browse the repository at this point in the history
  • Loading branch information
joristirado committed Apr 28, 2015
1 parent 06daa46 commit 1b05c09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion submodules/devices/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ define(function(require){
monster.ui.protectField(templateDevice.find('#sip_password'), templateDevice);

templateDevice.find('[data-toggle="tooltip"]').tooltip();
templateDevice.find('#mac_address').mask("hh:hh:hh:hh:hh:hh", {placeholder:" "});
templateDevice.find('#mac_address').mask("hh:hh:hh:hh:hh:hh", { placeholder:" " });
templateDevice.find('.chosen-feature-key-user').chosen({ search_contains: true });

if(!(data.media.encryption.enforce_security)) {
templateDevice.find('#rtp_method').hide();
Expand Down
4 changes: 2 additions & 2 deletions views/devices-sip_device.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
</select>
<div class="feature-key-value" data-type="presence">
<label for="provision.feature_keys[{{@key}}].value">{{ ../i18n.devices.popupSettings.featureKeys.labels.user }}</label>
<select name="provision.feature_keys[{{@key}}].value">
<select name="provision.feature_keys[{{@key}}].value" class="chosen-feature-key-user">
{{#each ../../extra.users}}
<option value="{{id}}">{{first_name}} {{last_name}}</option>
{{/each}}
Expand All @@ -273,7 +273,7 @@
</div>
<div class="feature-key-value" data-type="personal_parking">
<label for="provision.feature_keys[{{@key}}].value">{{ ../i18n.devices.popupSettings.featureKeys.labels.user }}</label>
<select name="provision.feature_keys[{{@key}}].value">
<select name="provision.feature_keys[{{@key}}].value" class="chosen-feature-key-user">
{{#each ../../extra.users}}
<option value="{{id}}">{{first_name}} {{last_name}}</option>
{{/each}}
Expand Down

0 comments on commit 1b05c09

Please sign in to comment.