Subversion Repositories DevTools

Rev

Rev 5085 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5085 Rev 5097
Line 116... Line 116...
116
 
116
 
117
 
117
 
118
            //  Centralise the loading of the body of the page
118
            //  Centralise the loading of the body of the page
119
            //
119
            //
120
            function load_page_body(url, data) {
120
            function load_page_body(url, data) {
-
 
121
                //  Persist these values, but don't add to the stored URL
-
 
122
                var persist = {
-
 
123
                    rtag_id : <%=DB_RTAG_ID%>,
-
 
124
                    proj_id : <%=DB_PROJ_ID%>,
-
 
125
                    pv_id : <%=DB_PV_ID%>,
-
 
126
                };
121
                $('#sdk_version').off();
127
                $('#sdk_version').off();
122
                $('#sdk_version').empty();
128
                $('#sdk_version').empty();
123
                $('#sdk_version').load(url, data);
129
                $('#sdk_version').load(url, $.extend({}, data, persist));
124
 
130
 
125
                //  Reflect the current page load in the URL
131
                //  Reflect the current page load in the URL
126
                //      Shows what we are doing
132
                //      Shows what we are doing
127
                //      Allows page reload to
133
                //      Allows page reload to
128
                
134
                
Line 134... Line 140...
134
                    }
140
                    }
135
                }
141
                }
136
                window.location.hash = jQuery.param(newdata);
142
                window.location.hash = jQuery.param(newdata);
137
            }
143
            }
138
 
144
 
139
                    // Process click on the table row
145
            // Process click on the table row
140
                    // Display versions available for this SDK
146
            // Display versions available for this SDK
141
                    //      this - a DOM node
147
            //      this - a DOM node
142
                    //      $(this) - The jquery wrapped node
148
            //      $(this) - The jquery wrapped node
143
                    //
149
            //
144
            tableEl.on( 'click', 'tbody tr', function () {
150
            tableEl.on( 'click', 'tbody tr', function () {
145
                    var sdk_id = table.row( this ).data()[0];
151
                    var sdk_id = table.row( this ).data()[0];
146
                    load_page_body('sdk_versions.asp', {sdk_id: sdk_id});
152
                    load_page_body('sdk_versions.asp', {sdk_id: sdk_id});
147
                    });
153
                    });
148
 
154