1colkat_frame_rl = { 2 id: 'colkat_frame_rl', 3 title: gettext('Rote-Liste-Information'), 4 5 lastHtml: undefined, 6 7 isInit:false, 8 UI: null, 9 ED: null, 10 11 init: function() { 12 if (this.isInit) return; 13 this.isInit = true; 14 }, 15 16 refresh: function() { 17 if (this.UI) { 18 if (this.lastHtml!=undefined) { 19 this.loadHtml(this.lastHtml); 20 } 21 } 22 }, 23 24 update: function(f,w,h) { 25 this.UI.setHeight(getFrameHeight()-100); 26 }, 27 28 edit: function(_colkat_frame, _data) { 29 }, 30 31 32 loadHtml: function(_html) { 33 var me = this; 34 me.lastHtml = _html; 35 me.UI.update('loading...'); 36 Ext.Ajax.request({ 37 url: '/ajax/html/'+_html+'/', 38 params: { 39 start: 'RL', 40 specid: g_['specid'], 41 userid: g_user, 42 placeid: g_place 43 }, 44 method: 'GET', 45 success: function(response) { 46 me.UI.update(response.responseText); 47 }, 48 failure: function(response) { 49 me.UI.update('loading rl error...'); 50 } 51 }) 52 }, 53 54 ui: function(_frame) { 55 this.init(); 56 if (this.UI) return this.UI; 57 this.UI = Ext.create('Ext.panel.Panel',{ 58 stateId: 'state-'+this.id+_frame, 59 stateful: true, 60 autoWidth: true, 61 autoScroll: true, 62 layout: 'auto', 63 html: '' 64 }); 65 return this.UI; 66 } 67}
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.