diff --git a/burpui/templates/js/client-report.js b/burpui/templates/js/client-report.js index 77f2d517..099ff048 100644 --- a/burpui/templates/js/client-report.js +++ b/burpui/templates/js/client-report.js @@ -16,7 +16,7 @@ var _client = function() { .margin({bottom: 115, left: 100}) ; - tmp.xAxis.showMaxMin(true).tickFormat(function(d) { console.log(d); return d3.time.format('%x %X')(new Date(d)) }).rotateLabels(-45); + tmp.xAxis.showMaxMin(true).tickFormat(function(d) { return d3.time.format('%x %X')(new Date(d)) }).rotateLabels(-45); tmp.yAxis.tickFormat(d3.format('f')); diff --git a/burpui/templates/js/settings.js b/burpui/templates/js/settings.js index 37c05c0c..e9b5ad76 100644 --- a/burpui/templates/js/settings.js +++ b/burpui/templates/js/settings.js @@ -200,7 +200,7 @@ app.controller('ConfigCtrl', ['$scope', '$http', '$scrollspy', function($scope, /* UX tweak: disable the submit button + change text */ submit = form.find('button[type="submit"]'); sav = submit.text(); - submit.text('Saving...'); + submit.text('{{ _("Saving...") }}'); submit.attr('disabled', true); /* submit the data */ $.ajax({ @@ -266,7 +266,7 @@ app.controller('ConfigCtrl', ['$scope', '$http', '$scrollspy', function($scope, $scope.new[type] = undefined; } $scope.add[type] = true; - keys = _.pluck($scope[type], 'name'); + keys = _.map($scope[type], 'name'); diff = _.difference($scope.all[type], keys); $scope.avail[type] = []; _(diff).forEach(function(n) {