summaryrefslogtreecommitdiff
path: root/static/js/kosten.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/kosten.js')
-rw-r--r--static/js/kosten.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/static/js/kosten.js b/static/js/kosten.js
index dbf1efe..2fe6846 100644
--- a/static/js/kosten.js
+++ b/static/js/kosten.js
@@ -1,6 +1,6 @@
// Generated by LiveScript 1.2.0
(function(){
- var jq, set_lang, addJS, showJS, statJS, catsJS, out$ = typeof exports != 'undefined' && exports || this;
+ var jq, setLang, addJS, showJS, statJS, catsJS, out$ = typeof exports != 'undefined' && exports || this;
jQuery.fn.extend({
copy: function(){
return this.clone().removeAttr('id class');
@@ -11,7 +11,7 @@
$(f);
};
};
- set_lang = function(){
+ setLang = function(){
return Highcharts.setOptions({
lang: {
months: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
@@ -30,7 +30,7 @@
});
});
out$.showJS = showJS = jq(function(){
- set_lang();
+ setLang();
$(".detail .heading").click(function(){
return $(this).closest('.detail').children('.mark:first').click();
});
@@ -92,7 +92,7 @@
});
out$.statJS = statJS = jq(function(){
var month;
- set_lang();
+ setLang();
month = 30 * 24 * 60 * 60 * 1000;
return $('.stats').each(function(){
var x$;
@@ -128,15 +128,15 @@
});
});
out$.catsJS = catsJS = jq(function(){
- var counter, add_img, new_input, new_image;
+ var counter, addImg, newInput, newImage;
counter = 0;
- add_img = $('img#add');
- new_input = $('input#new');
- new_image = function(new_name){
+ addImg = $('img#add');
+ newInput = $('input#new');
+ newImage = function(newName){
var x$;
- x$ = add_img.copy();
+ x$ = addImg.copy();
x$.attr('src', function(){
- return this.src.replace('add', new_name);
+ return this.src.replace('add', newName);
});
return x$;
};
@@ -144,7 +144,7 @@
var span, input, x$, img;
span = $(this);
input = span.next();
- x$ = img = new_image('undo');
+ x$ = img = newImage('undo');
x$.click(function(){
$(this).remove();
input.val(span.text());
@@ -157,10 +157,10 @@
return img.insertAfter(input);
});
});
- return add_img.click(function(){
+ return addImg.click(function(){
var input, x$, img;
- input = new_input.copy();
- x$ = img = new_image('minus');
+ input = newInput.copy();
+ x$ = img = newImage('minus');
x$.click(function(){
return $(this).parent().fadeOut('slow', function(){
return $(this).remove();
@@ -168,7 +168,7 @@
});
input.attr('name', function(){
return this.name + counter;
- }).removeAttr('style').wrap("<li />").parent().append(img).hide().insertBefore(add_img.parent()).fadeIn('slow', function(){
+ }).removeAttr('style').wrap("<li />").parent().append(img).hide().insertBefore(addImg.parent()).fadeIn('slow', function(){
return input.focus();
});
return counter++;