Browse Source

UI-2012: can now search by SIP Usernames in devices list of SmartPBX

4.3
Jean-Roch Maitre 9 years ago
parent
commit
e810383454
3 changed files with 4 additions and 3 deletions
  1. +2
    -1
      submodules/devices/devices.js
  2. +1
    -1
      views/devices-layout.html
  3. +1
    -1
      views/devices-row.html

+ 2
- 1
submodules/devices/devices.js View File

@ -892,7 +892,8 @@ define(function(require){
friendlyType: self.i18n.active().devices.types[device.device_type],
registered: false,
classStatus: device.enabled ? 'unregistered' : 'disabled' /* Display a device in black if it's disabled, otherwise, until we know whether it's registered or not, we set the color to red */,
isRegistered: false
isRegistered: false,
sipUserName: device.username
}
});


+ 1
- 1
views/devices-layout.html View File

@ -24,7 +24,7 @@
<span class="search-box pull-right">
<i class="fa fa-search"></i>
<input type="text" class="search-query" placeholder="{{ i18n.search }}..."></input>
<input type="text" class="search-query" placeholder="{{ i18n.search }}"></input>
</span>
</div>


+ 1
- 1
views/devices-row.html View File

@ -1,4 +1,4 @@
<div class="grid-row" data-id="{{id}}" data-search="{{userName}} {{friendlyType}} {{type}} {{name}} {{macAddress}}" data-assigned="{{isAssigned}}" data-registered="{{isRegistered}}">
<div class="grid-row" data-id="{{id}}" data-search="{{userName}} {{friendlyType}} {{type}} {{name}} {{macAddress}} {{sipUserName}}" data-assigned="{{isAssigned}}" data-registered="{{isRegistered}}">
<div class="devices-cells">
<div class="type grid-cell centered {{classStatus}}">
<div class="first-line">


Loading…
Cancel
Save