category_privacy_js

NAML documentation   Watch a video
   Usages of this macro
... in view_category.naml
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<macro name="category_privacy_js">
    <script type="text/javascript">
        var url = '/template/NamlServlet.jtp?macro=category_ajax&node=<n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/>';
        $(document).ready(function() {
            function showPrivateRows() {
                $('tr.private').each(function() {
                    var nodeId = $(this).attr('node');
                    url += '&node=' + nodeId;
                });
                url = url + Nabble.getClientID();
                $.getScript(url);
            }
            if (Nabble.userId)
                showPrivateRows();
        });
    </script>
</macro>