unlock_topic_link

NAML documentation   Watch a video
   Usages of this macro
... in topic.naml
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
<macro name="unlock_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.unlockTopic = function(id) {
                var call = '/'+'template/NamlServlet.jtp?macro=unlock_topic&node=' + id;
                $.getScript(call, function() {
                    $('#lock-icon').hide();
                    NabbleDropdown.hide('unlockTopic');
                    NabbleDropdown.show('lockTopic');
                    alert('<t
Macro
>This topic has been unlocked.</t>');
                });
            };
        </script>
    </n.put_in_head.>
    <a href="javascript: void Nabble.unlockTopic([n.id
Binary
Namespace: NodeNamespace
/])" class="[n.class/]" rel="nofollow" title="[n.title/]"><n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t
Macro
]Unlock topic[/t]"><n.text/></n.default.></a>
</macro>