menu_edit_name_and_description

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<macro name="menu_edit_name_and_description" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('editNameDescription', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.edit_subject_and_message_link
Macro
Requires: node
Parameters: text, title, class
/>', 'display:none');
        </then>
        <else>
            <n.set_local_node
Macro
Parameters: node
.this_node
Binary
Namespace: NodeNamespace
Parameters: do
/>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_edit
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
>
                <then>
                    NabbleDropdown.show('editNameDescription');
                </then>
            </n.if.visitor.can_edit.local_node>
        </else>
    </n.if.is_in_command>
</macro>