From eef8dc3c35a4d6339fae7d942388009afe1f78c1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Mar 2014 15:07:11 -0300 Subject: Squashed 'mod/faq/' content from commit b3a038c git-subtree-dir: mod/faq git-subtree-split: b3a038c8ac7db28d5cd47a7ae870f722c24e5921 --- views/default/js/simple_faq/toc.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 views/default/js/simple_faq/toc.php (limited to 'views/default/js') diff --git a/views/default/js/simple_faq/toc.php b/views/default/js/simple_faq/toc.php new file mode 100644 index 000000000..2b1621f88 --- /dev/null +++ b/views/default/js/simple_faq/toc.php @@ -0,0 +1,24 @@ + + +elgg.provide('elgg.simple_faq'); + +elgg.simple_faq.init = function() { + $(function(){ + $("
").prependTo(".elgg-main .elgg-output").stoc({ + search: ".elgg-main .elgg-output", + stocTitle: "", + listType: "ol", + }); + }); +}; + +elgg.register_hook_handler('init', 'system', elgg.simple_faq.init); -- cgit v1.2.3