user_request

NAML documentation   Watch a video
   Usages of this macro
... in user_request.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<macro name="user_request">
    <script type="text/javascript">
        var in_group;
        var path = '/template/NamlServlet.jtp?macro=user_response&user=';
        var url = Nabble.userId;
        if(url){
        $.getScript(path+url+Nabble.getClientID() ,function(data){
        posts_today = data;
        in_group = data;
        console.log(in_group);
        console.log(in_group != "true");
        if(in_group != "true") {
        $(".search_1").css("display","none");
        }else {
        $(".search_2").css("display","none");
        }
        });   
        } else $(".search_1").css("display","none");
        
    </script>
</macro>