Resources/views/WikiTag/javascriptForContextSearch.html.twig
author cavaliet
Thu, 01 Dec 2011 12:11:10 +0100
changeset 51 67c323b2f4d1
parent 33 6c87166b819c
child 74 901463f9b11c
permissions -rwxr-xr-x
Commit test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     1
{# partial display to add the needed Javascript for context search #}
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     2
{# We suppose the all the JS (jquery and stuffs and wikiTag.js) have already been loaded. See javascript.html.twig #}
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     3
<script type="text/javascript">
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     4
    var reactive_selectors = [{{ reactive_selectors|raw }}];
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     5
    $(document).ready(function(){
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     6
        wikitag_init_search_context_events();
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     7
    });
6c87166b819c First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents:
diff changeset
     8
</script>