current_find_usages_path

NAML documentation   Watch a video
   Usages of this macro
... in macro_viewer.naml
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
<macro name="current_find_usages_path" parameters="element_name">
    <script type="text/javascript">
        <n.compress
Macro
Parameters: text
.>
            var _path = '/template/NamlServlet.jtp?';
            var _p1 = 'macro=find_usages_page';
            var _p2 = '&id=<n.current_command_id
Macro
/>';
 
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.current_base_classes
Macro
>
                <then>var _p3 = '&base=<n.current_base_classes
Macro
/>';</then>
                <else> var _p3 = '';</else>
            </n.if.not.is_null.current_base_classes>
 
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.current_breadcrumbs
Macro
>
                <then>var _p4 = '&breadcrumbs=<n.current_breadcrumbs
Macro
/>';</then>
                <else> var _p4 = '';</else>
            </n.if.not.is_null.current_breadcrumbs>
 
            var _link = document.getElementById('<n.element_name/>');
            $(document).ready(function() {
                $(_link).click(function() {
                    notice('Finding Usages... Please wait');
                    window.location = _path+_p1+_p2+_p3+_p4+'&js='+Math.random();
                });
            });
        </n.compress.>
    </script>
</macro>