lock_topic_link

NAML documentation   Watch a video
   Usages of this macro
... in topic.naml
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
<macro name="lock_topic_link" requires="node" dot_parameter="text" parameters="title, class">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <script type="text/javascript">
            Nabble.lockTopic = function(id) {
                var call = '/'+'template/NamlServlet.jtp?macro=lock_topic&node=' + id;
                $.getScript(call, function() {
                    $('#lock-icon').show();
                    NabbleDropdown.show('unlockTopic');
                    NabbleDropdown.hide('lockTopic');
                    alert('<t
Macro
>This topic has been locked.</t>');
                });
            };
        </script>
    </n.put_in_head.>
    <a href="javascript: void Nabble.lockTopic([n.id
Binary
Namespace: NodeNamespace
/])" class="[n.class/]" rel="nofollow" title="[n.title/]"><n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t
Macro
]Lock topic[/t]"><n.text/></n.default.></a>
</macro>