1ACC.cms = { 2 loadComponent: function(id, type, target, onSuccess, onError) { 3 var self = this; 4 if(id) { 5 $.ajax({ 6 url: ACC.config.contextPath + '/cms/component?componentUid=' + encodeURIComponent(id), 7 cache: false, 8 type: 'GET', 9 dataType: 'html', 10 success: function (result) { 11 reprocess = result.indexOf('js-responsive-image') > -1; 12 self.insertHtml(result, target, reprocess); 13 if(onSuccess) { 14 onSuccess(result, id, type, target); 15 } 16 }, 17 error: function (result) { 18 if(onError) { 19 onError(result, id, type, target); 20 } 21 } 22 }); 23 } 24 }, 25 26 insertHtml: function(html, target, reprocess) { 27 if(target) { 28 $(target).html(html); 29 if(reprocess) { 30 ACC.global.reprocessImages(); 31 } 32 } 33 } 34}
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.