summaryrefslogtreecommitdiff
path: root/static/js/cats.js
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-09-14 00:27:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-09-14 00:27:31 +0200
commitf475f0095f2b4af1acab8cfe3d6c866a71b73bf1 (patch)
treef43d5ca41f17765c56bf00afb0a523ffef805b2f /static/js/cats.js
parent9b358a4a3e6ce5cad229ba2fa6da9218e88b61e0 (diff)
downloadkosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.tar.gz
kosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.tar.bz2
kosten-f475f0095f2b4af1acab8cfe3d6c866a71b73bf1.zip
Replaced current JS by LS and generated JS
Diffstat (limited to 'static/js/cats.js')
-rw-r--r--static/js/cats.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/static/js/cats.js b/static/js/cats.js
deleted file mode 100644
index e65cc28..0000000
--- a/static/js/cats.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var counter = 0;
-
-$(document).ready(function(){
- $("li > span").click(function(){
- var span = $(this);
- var img = $("img#add").copy().attr('src', function() { return this.src.replace("add", "undo"); });
-
- img.click(function(){
- var input = $(this).prev();
-
- $(this).remove();
- input.fadeOut("slow",
- function() {
- span.toggle();
- });
-
- input.val(span.text());
- });
-
- span.toggle();
- $(this).next().fadeIn("slow", function() {$(this).after(img); });
- });
-
- $("img#add").click(function(){
- var input = $("input#new").copy();
- var img = $(this).copy().attr('src', function() { return this.src.replace("add", "minus"); });
- img.click(function() { $(this).parent().fadeOut("slow", function() { $(this).remove(); }) });
-
- input.attr('name', function() { return this.name + counter; })
- .removeAttr('style')
- .insertBefore($(this).parent())
- .wrap("<li />");
-
- input.parent().append(img)
- .hide().fadeIn("slow", function (){ input.focus(); });
-
- counter = counter + 1;
- });
-})