equal
deleted
inserted
replaced
2 function load_now(eltsel, holesel) { |
2 function load_now(eltsel, holesel) { |
3 var lazydiv = jQuery(eltsel); |
3 var lazydiv = jQuery(eltsel); |
4 var hole = lazydiv.children(holesel); |
4 var hole = lazydiv.children(holesel); |
5 if (hole.length == 0) /* the hole is already filled */ |
5 if (hole.length == 0) /* the hole is already filled */ |
6 return; |
6 return; |
7 var vid_eid = lazydiv.attr('cubicweb__loadurl'); |
7 var vid_eid = lazydiv.attr('cubicweb:lazyloadurl'); |
8 /* XXX see what could be done with jquery.loadxhtml(...) */ |
8 /* XXX see what could be done with jquery.loadxhtml(...) */ |
9 var later = async_rawremote_exec('lazily', vid_eid); |
9 var later = async_rawremote_exec('lazily', vid_eid); |
10 later.addCallback(function(req) { |
10 later.addCallback(function(req) { |
11 var div = lazydiv[0]; |
11 var div = lazydiv[0]; |
12 div.appendChild(getDomFromResponse(req)); |
12 div.appendChild(getDomFromResponse(req)); |