empty_group_controls

NAML documentation   Watch a video
   Usages of this macro
... in change_user_groups.naml
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<macro name="empty_group_controls">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <script type="text/javascript">
            function addNewGroup() {
                var r = '<tr>';
                r += '<td></td>';
                r += '<td><input type="text" name="newgroup"/> <a href="javascript:void(0)" onclick="$(this).parent().parent().remove()"><t>remove</t></a></td>';
                r += '</tr>';
                $('#last-row').before(r);
                $('input[type="text"]:last').focus();
                Nabble.resizeFrames();
            };
        </script>
    </n.put_in_head.>
    <tr id="last-row">
        <td>&nbsp;</td>
        <td><a href="javascript:void(0)" onclick="addNewGroup()"><t>Add a new group</t></a></td>
        <td></td>
    </tr>
</macro>