Upgrade Phone Types View
Fix Enable/Disable buttons in Phone Types - now contextual on page Reformulate sub views (enabled or disabled not all) Change page Layout and formatting Fix response feedback Tidy up html Fix issue with running validate
This commit is contained in:
parent
7caf060e4a
commit
16ee04699b
|
@ -1011,11 +1011,13 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
return $modelList;
|
||||
}
|
||||
// Here so want to see if FW and template files exist on TFTP server.
|
||||
// only look in relevant column indexed by model so that returned value is ne 0
|
||||
// will be boolean false if not found
|
||||
|
||||
$needToCheckFw = array_search('no', array_column($modelList, 'fwfound'), true);
|
||||
$needToCheckTemp = array_search('no', array_column($modelList, 'templatefound'), true);
|
||||
$needToCheckFw = array_search('no', array_column($modelList, 'fwfound', 'model'), true);
|
||||
$needToCheckTemp = array_search('no', array_column($modelList, 'templatefound', 'model'), true);
|
||||
|
||||
if (!$needToCheckFw && !$needToCheckTemp) {
|
||||
if ($needToCheckFw === false && $needToCheckTemp === false) {
|
||||
// in modellist, all firmware shows as being available (no not found for either)
|
||||
return $modelList;
|
||||
}
|
||||
|
|
|
@ -180,16 +180,7 @@ $(document).ready(function () {
|
|||
|
||||
|
||||
|
||||
// ----------------------- Server.model.Button.Select----------------
|
||||
|
||||
$('.dropdown-menu a.dropitem').on("click", function (e) {
|
||||
|
||||
$(this).parents('div.btn-group').find('.dropdown_capture').text($(this).text());
|
||||
//console.log($(this).data('id'));
|
||||
ref_url = "ajax.php?module=sccp_manager&command=getDeviceModel&type=" + $(this).data('id');
|
||||
$('#table-models').bootstrapTable('refresh', {url: ref_url});
|
||||
});
|
||||
// ---------------------------------------
|
||||
|
||||
// Set location.hash when changing tabs so that can return to same tab after reload.
|
||||
$(".change-tab").click(function(){
|
||||
|
@ -526,12 +517,24 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
|
||||
// -----------------------adserver.model view Select models by status----------------
|
||||
|
||||
$('.dropdown-menu a.dropitem').on("click", function (e) {
|
||||
|
||||
$(this).parents('div.btn-group').find('.dropdown_capture').text($(this).text());
|
||||
//console.log($(this).data('id'));
|
||||
ref_url = "ajax.php?module=sccp_manager&command=getDeviceModel&type=" + $(this).data('id');
|
||||
$('#table-models').bootstrapTable('refresh', {url: ref_url});
|
||||
$('#table-models').bootstrapTable('uncheckAll');
|
||||
$("#buttonDeviceEnable").attr('disabled', true);
|
||||
$("#buttonDeviceDisable").attr('disabled', true);
|
||||
});
|
||||
// ---------------------------------------
|
||||
|
||||
$('.sccp_update').on('click', function (e) {
|
||||
// console.log($(this).data('id'));
|
||||
|
||||
// ----------------------- Server.keyset form ----------------
|
||||
// ----------------------- advserver.keyset view ----------------
|
||||
//
|
||||
if ($(this).data('id') === 'keyset_add') {
|
||||
var dev_cmd = 'updateSoftKey';
|
||||
|
@ -558,7 +561,8 @@ $(document).ready(function () {
|
|||
;
|
||||
}
|
||||
|
||||
// ----------------------- Server.model form ----------------
|
||||
// ----------------------- advserver.model view ----------------
|
||||
|
||||
if ($(this).data('id') === 'model_add') {
|
||||
var dev_cmd = 'model_add';
|
||||
// var dev_fld = ["model","vendor","dns","buttons","loadimage","loadinformationid","validate","enabled"];
|
||||
|
@ -608,8 +612,9 @@ $(document).ready(function () {
|
|||
i++;
|
||||
});
|
||||
}
|
||||
console.log(datas);
|
||||
// console.log(datas);
|
||||
}
|
||||
// Delete action button
|
||||
if ($(this).data('id') === 'delete_hardware') {
|
||||
var dev_cmd = $(this).data('id');
|
||||
var datas = '';
|
||||
|
@ -667,16 +672,16 @@ $(document).ready(function () {
|
|||
url: 'ajax.php?module=sccp_manager&command=' + dev_cmd,
|
||||
data: datas,
|
||||
success: function (data) {
|
||||
|
||||
if (data.status === true) {
|
||||
if (data.table_reload === true) {
|
||||
$('table').bootstrapTable('refresh');
|
||||
$('#table-models').bootstrapTable('refresh');
|
||||
}
|
||||
if (data.message) {
|
||||
fpbxToast(data.message,_('Operation Result'), 'success');
|
||||
fpbxToast(data.message,'', 'success');
|
||||
if (data.reload === true) {
|
||||
//Need setTimout or reload will kill Toast
|
||||
setTimeout(function(){location.reload();},500);
|
||||
$('#table-models').bootstrapTable("resetSearch","");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -782,31 +787,42 @@ $(document).ready(function () {
|
|||
// console.log($('#update-sccp-phone').find(':selected').data('val'));
|
||||
|
||||
});
|
||||
|
||||
// End DOCUMENT READY **************************************************
|
||||
});
|
||||
|
||||
|
||||
|
||||
//$("table").on('click-cell.bs.table', function (field, value, row, $element) {
|
||||
// var id_fld=$element['model']; Работает !
|
||||
// console.log('Table test: '+ id_fld);
|
||||
// $('#bt'+id_fld).removeAttr('hidden');
|
||||
//});
|
||||
|
||||
|
||||
// Bootstrap table Enable / Disable buttons ( class="btn-tab-select")
|
||||
$("table").on('check-all.bs.table', function (rows) {
|
||||
var id_fld = $(this).data('id');
|
||||
|
||||
if (id_fld === 'model') {
|
||||
var firstRow = $('#table-models').bootstrapTable('getData')[0];
|
||||
if (firstRow['enabled'] === "1") {
|
||||
$("#buttonDeviceDisable").removeAttr('disabled');
|
||||
} else {
|
||||
$("#buttonDeviceEnable").removeAttr('disabled');
|
||||
}
|
||||
} else {
|
||||
$(".btn-tab-select").each(function () {
|
||||
$(this).removeAttr('disabled');
|
||||
});
|
||||
// console.log('Table unselect all' + id_fld);
|
||||
}
|
||||
//console.log('Table unselect all' + id_fld);
|
||||
});
|
||||
$("table").on('check.bs.table', function (e, row) {
|
||||
var id_fld = $(this).data('id');
|
||||
|
||||
if (id_fld === 'model') {
|
||||
if (row['enabled'] === "1") {
|
||||
$("#buttonDeviceDisable").removeAttr('disabled');
|
||||
} else if (row['enabled'] === "0") {
|
||||
$("#buttonDeviceEnable").removeAttr('disabled');
|
||||
|
||||
}
|
||||
} else {
|
||||
$(".btn-tab-select").each(function () {
|
||||
$(this).removeAttr('disabled');
|
||||
});
|
||||
}
|
||||
// console.log('Table select ' + id_fld);
|
||||
});
|
||||
$("table").on('uncheck.bs.table', function (e, row) {
|
||||
|
@ -819,7 +835,7 @@ $("table").on('uncheck.bs.table', function (e, row) {
|
|||
$(this).attr('disabled', true);
|
||||
});
|
||||
}
|
||||
// console.log('Table unselect ' + id_count);
|
||||
// console.log('Table unselect ' + id_fld + id_count);
|
||||
});
|
||||
$("table").on('uncheck-all.bs.table', function (rows) {
|
||||
var id_fld = $(this).data('id');
|
||||
|
|
|
@ -228,7 +228,7 @@ class dbinterface
|
|||
$stmtU->execute();
|
||||
return $stmtU->fetchAll(\PDO::FETCH_ASSOC|\PDO::FETCH_UNIQUE);
|
||||
break;
|
||||
case 'extension':
|
||||
case 'expansion':
|
||||
$stmt = $this->db->prepare("SELECT ${sel_inf} FROM sccpdevmodel WHERE (dns = 0) and (enabled = 1) ORDER BY model");
|
||||
break;
|
||||
case 'enabled':
|
||||
|
@ -237,6 +237,9 @@ class dbinterface
|
|||
case 'phones':
|
||||
$stmt = $this->db->prepare("SELECT ${sel_inf} FROM sccpdevmodel WHERE (dns != 0) and (enabled = 1) ORDER BY model");
|
||||
break;
|
||||
case 'disabled':
|
||||
$stmt = $this->db->prepare("SELECT ${sel_inf} FROM sccpdevmodel WHERE (dns != 0) and (enabled = 0) ORDER BY model");
|
||||
break;
|
||||
case 'ciscophones':
|
||||
$stmt = $this->db->prepare("SELECT ${sel_inf} FROM sccpdevmodel WHERE (dns > 0) and (enabled = 1) AND RIGHT(vendor,4) != '-sip' ORDER BY model");
|
||||
break;
|
||||
|
|
|
@ -207,7 +207,7 @@ trait ajaxHelper {
|
|||
$this->dbinterface->write('sccpdevmodel', array('model' => $idv, 'enabled' => $model_set), 'update', "model");
|
||||
}
|
||||
}
|
||||
return array('status' => true, 'table_reload' => true);
|
||||
return array('status' => true, 'reload' => true , 'message' => ($model_set) ? "Devices Enabled" : "Devices Disabled");
|
||||
break;
|
||||
case 'model_delete':
|
||||
if (!empty($request['model'])) {
|
||||
|
@ -217,8 +217,8 @@ trait ajaxHelper {
|
|||
break;
|
||||
case 'getDeviceModel':
|
||||
switch ($request['type']) {
|
||||
case 'all':
|
||||
case 'extension':
|
||||
case 'disabled':
|
||||
case 'expansion':
|
||||
case 'enabled':
|
||||
$devices = $this->getSccpModelInformation($request['type'], $validate = true);
|
||||
break;
|
||||
|
|
|
@ -72,10 +72,10 @@ trait bmoFunctions {
|
|||
}
|
||||
$dev_schema = $this->getSccpModelInformation('byciscoid', false, "all", array('model' => $dev_data['SCCP_Vendor']['model_id']));
|
||||
if (empty($dev_schema)) {
|
||||
$dev_schema[0]['model'] = "Model ${dev_data['SCCP_Vendor']['model_id']} not found in model Database";
|
||||
} else if ( $dev_schema[0]['enabled' == 0]) {
|
||||
$dev_schema[0]['model'] = "Model {$dev_data['SCCP_Vendor']['model_id']} not found in model Database";
|
||||
} else if ( $dev_schema[0]['enabled'] == 0) {
|
||||
// Need to enable this model in phone types
|
||||
$this->dbinterface->write('sccpdevmodel', array('model'=> $dev_data['SCCP_Vendor']['model_id'], 'enabled = 1'), 'update' , 'model');
|
||||
$this->dbinterface->write('sccpdevmodel', array('model'=> $dev_data['SCCP_Vendor']['model_id'], 'enabled' => 1), 'update' , 'model');
|
||||
}
|
||||
|
||||
$dbDevices[] = array(
|
||||
|
|
|
@ -84,7 +84,9 @@ $keynamearray = array('onhook' => array('sname' => 'ONHOOK', 'name' =>'Displa
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="gridSystemModalLabel">Add New KeySet</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
|
|
@ -11,16 +11,18 @@ global $amp_conf;
|
|||
<div class="fpbx-container container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
<div class="display no-border">
|
||||
<div id="toolbar-model">
|
||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target=".add_new_model"><i class="fa fa-bolt"></i> <?php echo _("Add model"); ?>
|
||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target=".add_new_model">
|
||||
<i class="fa fa-plus"></i> <?php echo _("Add model"); ?>
|
||||
</button>
|
||||
<button data-id="model_disabled" class="btn btn-danger sccp_update btn-tab-select" data-type="sccp_model" data-table="table-models" disabled data-section="all">
|
||||
<i class="glyphicon glyphicon-remove"></i> <span><?php echo _('Disable') ?></span>
|
||||
<button data-id="model_disabled" id=buttonDeviceDisable class="btn btn-danger sccp_update btn-tab-select" data-type="sccp_model" data-table="table-models" disabled data-section="all">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
<span><?php echo _('Disable') ?></span>
|
||||
</button>
|
||||
<button data-id="model_enabled" class="btn btn-danger sccp_update btn-tab-select" data-table="table-models" data-type="sccp_model" disabled data-section="all">
|
||||
<i class="glyphicon glyphicon-active"></i> <span><?php echo _('Enable') ?></span>
|
||||
<button data-id="model_enabled" id=buttonDeviceEnable class="btn btn-success sccp_update btn-tab-select" data-table="table-models" data-type="sccp_model" disabled data-section="all">
|
||||
<i class="fa fa-check"></i>
|
||||
<span><?php echo _('Enable') ?></span>
|
||||
</button>
|
||||
<div class="btn-group">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
|
@ -28,9 +30,12 @@ global $amp_conf;
|
|||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropitem" data-id="enabled" tabindex="-1" href="#"><span><?php echo _('Show Enabled') ?></span></a></li>
|
||||
<li><a class="dropitem" data-id="extension" tabindex="-1" href="#"><span><?php echo _('Expansion Module')?></span></a></li>
|
||||
<li><a class="dropitem" data-id="all" tabindex="-1" href="#"><span><?php echo _('Show All') ?></span></a></li>
|
||||
<li><a class="dropitem" data-id="enabled" tabindex="-1" href="#">
|
||||
<span><?php echo _('Show Enabled') ?></span></a></li>
|
||||
<li><a class="dropitem" data-id="expansion" tabindex="-1" href="#">
|
||||
<span><?php echo _('Show Expansion Modules')?></span></a></li>
|
||||
<li><a class="dropitem" data-id="disabled" tabindex="-1" href="#">
|
||||
<span><?php echo _('Show Disabled') ?></span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target=".get_ext_file_<?php echo $requestType; ?>"><i class="fa fa-bolt"></i> <?php echo _("Update Files from Provisioner"); ?>
|
||||
|
@ -45,8 +50,8 @@ global $amp_conf;
|
|||
<th data-sortable="true" data-field="vendor"><?php echo _('Vendor');?></th>
|
||||
<th data-sortable="false" data-formatter="DisplayDnsFormatter" data-field="dns"><?php echo _('Expansion Module');?></th>
|
||||
<th data-sortable="false" data-field="buttons"><?php echo _('Buttons');?></th>
|
||||
<th data-sortable="false" data-formatter="SetColFirmNf" data-field="loadimage"><?php echo _('Loadimage');?></th>
|
||||
<th data-sortable="false" data-field="loadinformationid"><?php echo _('Loadinformation ID');?></th>
|
||||
<th data-sortable="false" data-formatter="SetColFirmNf" data-field="loadimage"><?php echo _('Loadimage');?></th>
|
||||
<th data-sortable="false" data-formatter="SetColTemplNf" data-field="nametemplate"><?php echo _('Model template');?></th>
|
||||
<th data-field="actions" data-formatter="DispayActionsModelFormatter"><?php echo _('Actions');?></th>
|
||||
</tr>
|
||||
|
@ -63,84 +68,144 @@ global $amp_conf;
|
|||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="gridSystemModalLabel"><?php echo _('Add new model');?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="element-container"><div class="row"> <div class="form-group"><div class="col-md-3">
|
||||
<div class="element-container">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label class="control-label" for="new_model"><?php echo _('Device Model');?></label>
|
||||
<i class="fa fa-question-circle fpbx-help-icon" data-for="new_model"></i>
|
||||
</div><div class="col-md-9">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" class="form-control" id="new_model" name="new_model" value="79XX">
|
||||
</div> </div></div>
|
||||
<div class="row"><div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<span id="new_model-help" class="help-block fpbx-help-block">Help.</span>
|
||||
</div></div></div>
|
||||
|
||||
<div class="element-container"><div class="row"> <div class="form-group"><div class="col-md-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="element-container">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label class="control-label" for="new_vendor"><?php echo _('Vendor name');?></label>
|
||||
<i class="fa fa-question-circle fpbx-help-icon" data-for="new_vendor"></i>
|
||||
</div><div class="col-md-9">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" class="form-control" id="new_vendor" name="new_vendor" value="CISCO">
|
||||
</div> </div></div>
|
||||
<div class="row"><div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<span id="new_vendor-help" class="help-block fpbx-help-block">Use "CISCO" for the Skinny Client Control Protocol and "CISCO-SIP" for the CISCO Sip Protocol</span>
|
||||
</div></div></div>
|
||||
|
||||
<div class="element-container"><div class="row"> <div class="form-group"><div class="col-md-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="element-container">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label class="control-label" for="new_dns"><?php echo _('Expansion Module');?></label>
|
||||
<i class="fa fa-question-circle fpbx-help-icon" data-for="new_dns"></i>
|
||||
</div><div class="col-md-9">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<select name="new_dns" id="new_dns">
|
||||
<option value="1" selected='selected'>Phone - no sidecars.</option>
|
||||
<option value="2">Phone - one sidecar.</option>
|
||||
<option value="3">Phone - two sidecars.</option>
|
||||
<option value="0">Sidecar</option>
|
||||
</select>
|
||||
</div> </div></div>
|
||||
<div class="row"><div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<span id="new_dns-help" class="help-block fpbx-help-block">Help.</span>
|
||||
</div></div></div>
|
||||
|
||||
<div class="element-container"><div class="row"> <div class="form-group"><div class="col-md-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="element-container">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label class="control-label" for="new_buttons"><?php echo _('Model Line Buttons');?></label>
|
||||
<i class="fa fa-question-circle fpbx-help-icon" data-for="new_buttons"></i>
|
||||
</div><div class="col-md-9">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="number" min="1" min="96" class="form-control" id="new_buttons" name="new_buttons" value="1">
|
||||
</div> </div></div>
|
||||
<div class="row"><div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<span id="new_buttons-help" class="help-block fpbx-help-block">Help.</span>
|
||||
</div></div></div>
|
||||
|
||||
<div class="element-container"><div class="row"> <div class="form-group"><div class="col-md-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="element-container">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label class="control-label" for="new_loadimage"><?php echo _('Load Image');?></label>
|
||||
<i class="fa fa-question-circle fpbx-help-icon" data-for="new_loadimage"></i>
|
||||
</div><div class="col-md-9">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" class="form-control" id="new_loadimage" name="new_loadimage" value="">
|
||||
</div> </div></div>
|
||||
<div class="row"><div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<span id="new_loadimage-help" class="help-block fpbx-help-block">Help.</span>
|
||||
</div></div></div>
|
||||
|
||||
<div class="element-container"><div class="row"> <div class="form-group"><div class="col-md-3">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="element-container">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label class="control-label" for="new_loadinformationid"><?php echo _('Load Information ID');?></label>
|
||||
<i class="fa fa-question-circle fpbx-help-icon" data-for="new_loadinformationid"></i>
|
||||
</div><div class="col-md-9">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" class="form-control" id="new_loadinformationid" name="new_loadinformationid" value="">
|
||||
</div> </div></div>
|
||||
<div class="row"><div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<span id="new_loadinformationid-help" class="help-block fpbx-help-block">Help.</span>
|
||||
</div></div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="element-container"><div class="row"> <div class="form-group"><div class="col-md-3">
|
||||
<div class="element-container">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-3">
|
||||
<label class="control-label" for="new_nametemplate"><?php echo _('Model template XML');?></label>
|
||||
<i class="fa fa-question-circle fpbx-help-icon" data-for="new_nametemplate"></i>
|
||||
</div><div class="col-md-9">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" class="form-control" id="new_nametemplate" name="new_nametemplate" value="">
|
||||
</div> </div></div>
|
||||
<div class="row"><div class="col-md-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<span id="new_nametemplate-help" class="help-block fpbx-help-block">Help.</span>
|
||||
</div></div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _('Close');?></button>
|
||||
|
@ -317,16 +382,13 @@ include($amp_conf['AMPWEBROOT'] . '/admin/modules/sccp_manager/views/getFileModa
|
|||
|
||||
function SetRowColor(row, index) {
|
||||
var tclass = "active";
|
||||
if (row['enabled'] === 1) {
|
||||
tclass = (index % 2 === 0) ? "info" : "info";
|
||||
if (row['enabled'] === "1") {
|
||||
tclass = "success";
|
||||
}
|
||||
if (row['fwfound'] === 'yes') {
|
||||
// tclass = (row['enabled'] === '1') ? "danger" : "warning";
|
||||
} else {
|
||||
tclass = (row['enabled'] === '1') ? "danger" : "warning";
|
||||
if (row['fwfound'] !== 'yes') {
|
||||
tclass = (row['enabled'] === "1") ? "danger" : "warning";
|
||||
}
|
||||
return {classes: tclass};
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue