- Bug Fix Sip

This commit is contained in:
PhantomVl 2019-11-14 14:30:03 +03:00 committed by Diederik de Groot
parent 320da7b86f
commit c0990954e5
No known key found for this signature in database
GPG key ID: AFA728250A1BECD6

View file

@ -577,10 +577,12 @@ $(document).ready(function () {
datas = datas + 'idn[' + i + ']=' + entry['name'] + '&'; datas = datas + 'idn[' + i + ']=' + entry['name'] + '&';
i++; i++;
}); });
if (document.getElementById('table-sip') != null ) {
$('#table-sip').bootstrapTable('getSelections').forEach(function (entry) { $('#table-sip').bootstrapTable('getSelections').forEach(function (entry) {
datas = datas + 'idn[' + i + ']=' + entry['name'] + '&'; datas = datas + 'idn[' + i + ']=' + entry['name'] + '&';
i++; i++;
}); });
}
console.log(datas); console.log(datas);
} }
@ -588,15 +590,16 @@ $(document).ready(function () {
var dev_cmd = $(this).data('id'); var dev_cmd = $(this).data('id');
var datas = ''; var datas = '';
var i = 0; var i = 0;
// $('table').bootstrapTable('getSelections').forEach(function (entry) {
$('#table-sccp').bootstrapTable('getSelections').forEach(function (entry) { $('#table-sccp').bootstrapTable('getSelections').forEach(function (entry) {
datas = datas + 'idn[' + i + ']=' + entry['name'] + '&'; datas = datas + 'idn[' + i + ']=' + entry['name'] + '&';
i++; i++;
}); });
if (document.getElementById('table-sip') != null ) {
$('#table-sip').bootstrapTable('getSelections').forEach(function (entry) { $('#table-sip').bootstrapTable('getSelections').forEach(function (entry) {
datas = datas + 'idn[' + i + ']=' + entry['name'] + '&'; datas = datas + 'idn[' + i + ']=' + entry['name'] + '&';
i++; i++;
}); });
}
if (!confirm(_('Are you sure you wish to delete selected device ?'))) { if (!confirm(_('Are you sure you wish to delete selected device ?'))) {
dev_cmd = ''; dev_cmd = '';
} }
@ -616,15 +619,16 @@ $(document).ready(function () {
if ($(this).data('id') === 'update_button_label') { if ($(this).data('id') === 'update_button_label') {
conf_msg = 'Update Butons Labels on All device ?'; conf_msg = 'Update Butons Labels on All device ?';
} }
// $('table').bootstrapTable('getSelections').forEach(function (entry) {
$('#table-sccp').bootstrapTable('getSelections').forEach(function (entry) { $('#table-sccp').bootstrapTable('getSelections').forEach(function (entry) {
datas = datas + 'name[' + i + ']=' + entry['name'] + '&'; datas = datas + 'name[' + i + ']=' + entry['name'] + '&';
i++; i++;
}); });
if (document.getElementById('table-sip') != null ) {
$('#table-sip').bootstrapTable('getSelections').forEach(function (entry) { $('#table-sip').bootstrapTable('getSelections').forEach(function (entry) {
datas = datas + 'name[' + i + ']=' + entry['name'] + '&'; datas = datas + 'name[' + i + ']=' + entry['name'] + '&';
i++; i++;
}); });
}
if (datas === '') { if (datas === '') {
if (confirm(conf_msg)) { if (confirm(conf_msg)) {