Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-05-19 19:26:09 +0300
committerVincent Tam <sere@live.hk>2019-05-19 19:26:09 +0300
commitf6cd0a8dba6fa5e06b582b62e7c198b6dfb8f30e (patch)
tree2a3b526ad0a6636f322d9fe5404fffab4e512500 /static
parent5c367d2574fec4432820f949cf03be1d940b02ef (diff)
Corrigé la fct pour staticman
Diffstat (limited to 'static')
-rw-r--r--static/js/staticman.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/staticman.js b/static/js/staticman.js
index 9ed9630..81800ee 100644
--- a/static/js/staticman.js
+++ b/static/js/staticman.js
@@ -1,6 +1,6 @@
// Static comments
// from: https://github.com/eduardoboucas/popcorn/blob/gh-pages/js/main.js
-(function ($) {
+$(document).ready(function() {
var $comments = $('.js-comments');
$('.js-form').submit(function () {
@@ -65,4 +65,4 @@
targetID = "#" + $(targetPostID).parents('.static-comment').attr('id');
$('html, body').animate({ scrollTop: $(targetID).offset().top-$('nav').height() }, 500);
});
-})(jQuery);
+});