1 2/* - portlet_collection_batching.js - */ 3/** 4 * This js module provide handlers for ajax batching in redturtle collection portlet 5 */ 6 7function get_renderer_html(clicked, query){ 8 //First of all get the hash before delete the structure 9 var portlet_hash = get_portlet_hash(jq(clicked)); 10 11 //Clear the portlet 12 //jq('div#portletwrapper-'+portlet_hash+'div#portlet.collection.navigation').html(''); 13 //jq('div#portletwrapper-'+portlet_hash+'div#portlet.collection.navigation').append("<img src='./loadinfo.gif'>"); 14 15 //Make the Ajax request to server 16 var url = jq('base').attr('href'); 17 var b_start_key = query.split(':int=')[0]; 18 var b_start_value = query.split(':int=')[1]; 19 jq.ajax({ 20 url: url + '/@@collection_portlet_renderer', 21 dataType: 'html', 22 type: 'POST', 23 data:jq.param({hash:portlet_hash, 24 collection_portlet_b_start:b_start_value}), 25 error: function(XMLHttpRequest, textStatus, errorThrown){ 26 alert("Problem rendering the portlet back!"); 27 }, 28 success: function(data, textStatus, XMLHttpRequest){ 29 jq('div#portletwrapper-'+portlet_hash).html(data); 30 } 31 }) 32} 33 34function get_portlet_hash(element){ 35 var element_id = element.closest('div[id^="portletwrapper"]').attr('id'); 36 return element_id.replace(/portletwrapper-/,""); 37} 38
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.