(i)
| 61 | var scripts = []; |
| 62 | |
| 63 | var getTable = function(i) { |
| 64 | var t, tr, trf, b, f, h; |
| 65 | var r = [], u = []; |
| 66 | |
| 67 | b = cr('tbody', i.name, i.id, 'body'); |
| 68 | f = cr('tfoot', i.name, i.id, 'foot'); |
| 69 | h = cr('thead', i.name, i.id, 'head'); |
| 70 | |
| 71 | if (i.scriptTab) { |
| 72 | var multi = createMultiSelectActions(i); |
| 73 | t = crc('table', "scripttable", i.name, i.id, 'main'); |
| 74 | var t0 = crc('th', "", i.name, i.id, 'thead_sel'); |
| 75 | t0.appendChild(multi.selAll); |
| 76 | var f0 = crc('td', "", i.name, i.id, 'tfoot_sel'); |
| 77 | |
| 78 | var t1 = crc('th', "", i.name, i.id, 'thead_en'); |
| 79 | var f1 = crc('td', "", i.name, i.id, 'tfoot_en'); |
| 80 | f1.setAttribute("colspan", "9"); |
| 81 | f1.appendChild(multi.actionBox); |
| 82 | |
| 83 | var t2 = crc('th', "settingsth", i.name, i.id, 'thead_name'); |
| 84 | t2.textContent = I18N.getMessage('Name'); |
| 85 | var t24 = crc('th', "settingsth", i.name, i.id, 'thead_ver'); |
| 86 | t24.textContent = I18N.getMessage('Version'); |
| 87 | var t25 = crc('th', "settingsth", i.name, i.id, 'thead_type'); |
| 88 | t25.textContent = I18N.getMessage('Type'); |
| 89 | var t26 = crc('th', "settingsth", i.name, i.id, 'thead_sync'); |
| 90 | t26.textContent = ""; |
| 91 | var t3 = crc('th', "settingsth", i.name, i.id, 'thead_sites'); |
| 92 | t3.width = "25%"; |
| 93 | t3.textContent = I18N.getMessage('Sites'); |
| 94 | var t4 = crc('th', "settingsth", i.name, i.id, 'thead_features'); |
| 95 | t4.textContent = I18N.getMessage('Features'); |
| 96 | var t5 = crc('th', "settingsth", i.name, i.id, 'thead_edit'); |
| 97 | t5.textContent = I18N.getMessage('Homepage'); |
| 98 | var t6 = crc('th', "settingsth", i.name, i.id, 'thead_updated'); |
| 99 | t6.textContent = I18N.getMessage('Last_Updated'); |
| 100 | var t7 = crc('th', "settingsth", i.name, i.id, 'thead_sort'); |
| 101 | t7.textContent = I18N.getMessage('Sort'); |
| 102 | var t8 = crc('th', "settingsth", i.name, i.id, 'thead_del'); |
| 103 | t8.textContent = I18N.getMessage('Delete'); |
| 104 | var later = function() { |
| 105 | if (gOptions.sync_enabled) t26.textContent = I18N.getMessage('Imported'); |
| 106 | }; |
| 107 | doneListener.push(later); |
| 108 | |
| 109 | r = r.concat([t0, t1, t2, t24, t25, t26, t3, t4, t5, t6, t7, t8]); |
| 110 | tr = crc('tr', 'settingstr filler', i.name, i.id, 'filler'); |
| 111 | for (var o=0; o<r.length; o++) { |
| 112 | tr.appendChild(r[o]); |
| 113 | } |
| 114 | |
| 115 | u = u.concat([f0, f1]); |
| 116 | trf = crc('tr', 'settingstr filler', i.name, i.id, 'footer'); |
| 117 | for (var o=0; o<u.length; o++) { |
| 118 | trf.appendChild(u[o]); |
| 119 | } |
| 120 |
no test coverage detected
searching dependent graphs…