send_node_as_email_input

NAML documentation   Watch a video
   Usages of this macro
... in reply.naml
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
<macro name="send_node_as_email_input">
    <script type="text/javascript">
        function addFirstAddress() {
            $('#add-another-address').show();
            addAddress();
        };
        function removeAddress(e) {
            $(e).parent().parent().remove();
            var s = $('#address-list table tr').size();
            if (s == 0)
                $('#add-another-address').hide();
            Nabble.resizeFrames();
        };
        function addAddress() {
            $('#address-list').append('<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.remove_spaces_between_tags
Macro
Parameters: text
.send_node_as_email_input_row
Macro
Parameters: email
 email=""/>');
            Nabble.resizeFrames();
        };
    </script>
    <a href="javascript: void(0)" onclick="addFirstAddress()"><t>Email this post to...</t></a>
    <div id="add-another-address" class="extra-field-details medium-border-color" style="[n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.has_parameter
Macro
Requires: http_request
Parameters: name
 name='email-to'][then]display:none[/then][/n.if.not.has_parameter]">
        <div id="address-list">
            <n.get_parameter_values
Binary
Namespace: RequestNamespace
Parameters: name, do
. name="email-to">
                <n.loop
Macro
Requires: sequence
Parameters: by, do
.send_node_as_email_input_row
Macro
Parameters: email
.current_parameter_value
Binary
Namespace: ParameterValueList
/>
            </n.get_parameter_values.>
        </div>
        <a href="javascript: void addAddress()"><t>Add another address</t></a>
        &nbsp;
        <span class="weak-color">(<t>one email per input box</t>)</span>
    </div>
</macro>