editor_upload_file_button

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "editor_upload_file_button".
... in editor_upload_file_button.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<macro name="editor_upload_file_button">
    <n.put_in_head.>
        <script type="text/javascript">
            <![CDATA[
            Nabble.uploadFile = function() {
                Nabble.closeWindows();
                var $fileDiv = $('#file-upload');
                var isOpen = $fileDiv.css("display") != 'none';
                var alreadyLoaded = window.fileuploader && $('#file-upload-form', window.fileuploader.document).size() == 1;
                if (isOpen)
                    return;
                else if (alreadyLoaded)
                    $fileDiv.show();
                else {
                    var f = '';
                    if ($.browser.msie)
                        f += '<br style="line-height:1px"/>';
                    f += "<iframe id='fileuploader' name='fileuploader' src='/forum/UploadFile.jtp?node=" + nodeId + Nabble.getClientID() + "' width='380' height='100' frameBorder='0' scrolling='no' allowtransparency='true'>";
                    $fileDiv.html(f).show();
                }
            };
            Nabble.uploadedFile = function(name) {
                var textarea = Nabble.get(textareaID);
                this.setSelection( textarea, '<nabble_a href="'+name+'">'+name+'</nabble_a>' );
                textarea.focus();
                Nabble.closeWindows();
            };
            ]]>
        </script>
    </n.put_in_head.>
    <td class="nowrap has-dropdown">
        <div id="file-upload" class="editor-dropdown image-upload medium-border-color light-bg-color drop-shadow" style="margin-left:-5em"></div>
        <button type="button" onclick="Nabble.uploadFile()" class="toolbar image-upload" title="[t]Upload a file[/t]">
            <img src="http://cdn1.iconfinder.com/data/icons/Hand_Drawn_Web_Icon_Set/128/file_upload.png" border="0" height="12" alt="Picture" style="vertical-align:middle"/>
            <t>Upload a file</t>
        </button>
        <n.tooltip use_title="true"/>
    </td>
</macro>