From 177f9d3878b16862aa30abcc9db75db9bc29b8d4 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 28 Aug 2014 14:13:47 +0200 Subject: Remove some 'return's --- static/js/kosten.js | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) (limited to 'static/js/kosten.js') diff --git a/static/js/kosten.js b/static/js/kosten.js index e7170cb..4600a24 100644 --- a/static/js/kosten.js +++ b/static/js/kosten.js @@ -12,7 +12,7 @@ }; }; setLang = function(){ - return Highcharts.setOptions({ + Highcharts.setOptions({ colors: ['#2f7ed8', '#0d233a', '#8bbc21', '#910000', '#1aadce', '#492970', '#f28f43', '#77a1e5', '#c42525', '#a6c96a'], lang: { months: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], @@ -25,7 +25,7 @@ }); }; out$.addJS = addJS = jq(function(){ - return $('input[name=date]').datepicker({ + $('input[name=date]').datepicker({ dateFormat: 'dd.mm.yy', firstDay: 1 }); @@ -33,7 +33,7 @@ out$.showJS = showJS = jq(function(){ setLang(); $(".detail .heading").click(function(){ - return $(this).closest('.detail').children('.mark:first').click(); + $(this).closest('.detail').children('.mark:first').click(); }); $(".detail > .mark").click(function(){ if (this.src.indexOf('closed') !== -1) { @@ -41,10 +41,10 @@ } else { this.src = this.src.replace('open', 'closed'); } - return $(this).nextAll('.details:first').toggle(); + $(this).nextAll('.details:first').toggle(); }); $('.details').hide(); - return $('.pie').each(function(){ + $('.pie').each(function(){ var x$, k, v; x$ = $(this); x$.highcharts({ @@ -93,7 +93,6 @@ }()) }] }); - return x$; }); }); out$.statJS = statJS = jq(function(){ @@ -101,16 +100,15 @@ setLang(); month = 30 * 24 * 60 * 60 * 1000; constDialog = function(){ - var df, diag_opts; + var df; df = Highcharts.dateFormat; - diag_opts = { - title: df('%B %Y', this.x) - }; $.get(df('/stats/_const/%Y/%d', this.x), function(data){ - $(data).dialog(diag_opts); + $(data).dialog({ + title: df('%B %Y', this.x) + }); }); }; - return $('.stats').each(function(){ + $('.stats').each(function(){ var x$; x$ = $(this); x$.highcharts('StockChart', { @@ -149,7 +147,6 @@ pointFormat: '{point.y} €
' } }); - return x$; }); }); out$.catsJS = catsJS = jq(function(){ @@ -173,30 +170,30 @@ x$.click(function(){ $(this).remove(); input.val(span.text()); - return input.fadeOut('slow', function(){ - return span.toggle(); + input.fadeOut('slow', function(){ + span.toggle(); }); }); span.toggle(); - return input.fadeIn('slow', function(){ - return img.insertAfter(input); + input.fadeIn('slow', function(){ + img.insertAfter(input); }); }); - return addImg.click(function(){ + addImg.click(function(){ var input, x$, img; input = newInput.copy(); x$ = img = newImage('minus'); x$.click(function(){ - return $(this).parent().fadeOut('slow', function(){ - return $(this).remove(); + $(this).parent().fadeOut('slow', function(){ + $(this).remove(); }); }); input.attr('name', function(){ return this.name + counter; }).removeAttr('style').wrap("
  • ").parent().append(img).hide().insertBefore(addImg.parent()).fadeIn('slow', function(){ - return input.focus(); + input.focus(); }); - return counter++; + counter++; }); }); }).call(this); -- cgit v1.2.3-70-g09d2