various fix

This commit is contained in:
ziirish 2017-03-04 18:45:25 +01:00
parent e1104555f0
commit e338ba1bc0
2 changed files with 3 additions and 3 deletions

View file

@ -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'));

View file

@ -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) {