Skip to content

Commit

Permalink
fixed autoaupdate, fixed some styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Mar 17, 2016
1 parent e9b9997 commit b0cf464
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 174 deletions.
3 changes: 2 additions & 1 deletion css/report-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ padding-top: 25px;
@media (max-width: 1424px) {

.container {
width: 90%;
width: 95%;
}

.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
Expand Down Expand Up @@ -372,3 +372,4 @@ padding-top: 25px;
}

}

2 changes: 1 addition & 1 deletion js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
$scope.timerange.from.setSeconds($scope.timerange.from.getSeconds() + seconds);
$scope.timerange.to.setSeconds($scope.timerange.to.getSeconds() + seconds);
userProfile.setProfile("timerange", $scope.timerange);
userProfile.setProfile("timezone", $scope.timezone.value);
userProfile.setProfile("timezone", $scope.timezone);
eventbus.broadcast("globalWidgetReload", 1);
}, seconds * 1e3);
}
Expand Down
3 changes: 1 addition & 2 deletions js/widgets/sipcapture/sipcapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ sipcaptureWdgt.query = function($scope, query, userProfile) {
var timedate = userProfile.getProfile("timerange");
var filters = $scope.config.panel.filters;
var filterParams = [];

var timezone = userProfile.getProfile("timezone");
var diff = (new Date().getTimezoneOffset() - timezone.value) * 60 * 1000;

Expand Down Expand Up @@ -1235,7 +1235,6 @@ sipcaptureWdgt.flot.stackedAreaChart.prepare = function($scope, animate, data) {
}
};

console.log("AA");
if ($scope.config.chart.legend) {
if ($scope.config.chart.legend.enabled && $scope.config.chart.legend.enabled == true) {
$scope.flotOptions.legend.show = true;
Expand Down
19 changes: 13 additions & 6 deletions share/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@

$scope.setRtcpMembers(rdata); // Voicenter function
$scope.showRTCPChart(); // Voicenter function
}
} else {
console.log('DISCARDING:',msg);
}
},
function(sdata) { return;}).finally(function(){
$scope.dataLoading = false;
Expand Down Expand Up @@ -321,7 +323,7 @@
chart: {
renderTo: 'rtcpchart-container',
type: 'line',
//width: '1000',
// width: '1000',
zoomType: 'x'
},
title: {
Expand Down Expand Up @@ -761,7 +763,13 @@
var leg2CodecsInvite = [];
var leg1Codecs200 = [];
var leg2Codecs200 = [];
var tmp = leg1Invite.msg.split("\r\n");
try {
var tmp = leg1Invite.msg.split(/\r?\n/);
// var tmp = leg1Invite.msg.split("\r\n");
} catch(err) {
console.log(err); var tmp = [];
}

tmp.forEach(function(sipHeader){
if(sipHeader.substring(0,4).toUpperCase() == "FROM"){
leg1From = sipHeader.substring(6).split(";")[0];
Expand Down Expand Up @@ -865,10 +873,9 @@
break;
}
}

if (!$scope.SELECTED_CODEC_LEG1) $scope.SELECTED_CODEC_LEG1 = $scope.LEG21_CODEC1;
if (!$scope.SELECTED_CODEC_LEG2) $scope.SELECTED_CODEC_LEG2 = $scope.LEG22_CODEC1;

if (!$scope.SELECTED_CODEC_LEG1) $scope.SELECTED_CODEC_LEG1 = $scope.LEG21_CODEC1;
if (!$scope.SELECTED_CODEC_LEG2) $scope.SELECTED_CODEC_LEG2 = $scope.LEG22_CODEC1;
}

};
Expand Down
Loading

0 comments on commit b0cf464

Please sign in to comment.