aboutsummaryrefslogtreecommitdiffstats
path: root/static/famille.js
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-04-07 15:31:34 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-04-07 15:31:34 -0400
commitd4874db3d2db48995b12381e379108ed32d35096 (patch)
tree310d308262512f5fd35fcaa1c4ff0720baa6aebb /static/famille.js
parent4e277f27ff4859b1c40d364bf934dd02d3c455db (diff)
downloadfamille-flask-d4874db3d2db48995b12381e379108ed32d35096.tar.gz
Reorganize assets
Diffstat (limited to 'static/famille.js')
-rw-r--r--static/famille.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/static/famille.js b/static/famille.js
deleted file mode 100644
index 3bb9e51..0000000
--- a/static/famille.js
+++ /dev/null
@@ -1,46 +0,0 @@
-$.fn.wait = function(time, type) {
- time = time || 1000;
- type = type || "fx";
- return this.queue(type, function() {
- var self = this;
- setTimeout(function() {
- $(self).dequeue();
- }, time);
- });
-};
-
-$(document).ready(function(){
- $('[data-toggle="tooltip"]').tooltip()
- $("div.infobox").wait(2000).slideUp("slow");
- $("div.errorbox").wait(2000).slideUp("slow");
- $("#add").click(function(){
- $(".hidden").fadeIn("slow");
- $(this).hide(0);
- $("label.info").hide(0);
- $(".tohide").hide(0);
- });
- $("#kadobutton").click(function(){
- $(".kadoscope").animate({opacity:"1"},"5000");
- });
- $('span.timeago').timeago();
- var addr = $(location).attr('pathname');
- $("#"+addr.replace(/\//g,"")).addClass("active");
-
- $(".edit").click(function(e){
- e.preventDefault();
- $(this).parents(".media-heading").siblings(".comment-content").hide();
- $(this).parents(".media-heading").siblings(".comment-source").show();
- });
-
- $(".comment-source").submit(function(e){
- e.preventDefault();
- var comment_id = $(this).data("id");
- var form = $(this);
- $.post("/comment/" + comment_id, {content: form.find("textarea").val()}, function(data) {
- var comment_content = form.parents(".media-body").find(".comment-content");
- comment_content.html(data.content_cache);
- comment_content.show();
- form.hide();
- });
- });
-});