Fossil SCM

Remove calls to gebi() in JS modules.

drh 2017-12-06 20:39 trunk
Commit 652267ed30b8bbfb4619433604d67e3859a59cbcd1d4b2c692aac87e940bb86e
2 files changed +2 -2 +1 -1
+2 -2
--- src/graph.js
+++ src/graph.js
@@ -316,11 +316,11 @@
316316
var x = document.getElementById(id);
317317
if(x) x.style.display=value;
318318
}
319319
function toggleDetail(){
320320
var id = parseInt(this.getAttribute('data-id'))
321
- var x = gebi("detail-"+id);
321
+ var x = document.getElementById("detail-"+id);
322322
if( x.style.display=="inline" ){
323323
x.style.display="none";
324324
changeDisplayById("ellipsis-"+id,"inline");
325325
changeDisplayById("links-"+id,"none");
326326
}else{
@@ -336,11 +336,11 @@
336336
var h = window.innerHeight;
337337
var y = absoluteY(x[0]) - h/2;
338338
if( y>0 ) window.scrollTo(0, y);
339339
}
340340
}
341
- var lastRow = gebi("m"+tx.rowinfo[tx.rowinfo.length-1].id);
341
+ var lastRow = document.getElementById("m"+tx.rowinfo[tx.rowinfo.length-1].id);
342342
var lastY = 0;
343343
function checkHeight(){
344344
var h = absoluteY(lastRow);
345345
if( h!=lastY ){
346346
renderGraph();
347347
--- src/graph.js
+++ src/graph.js
@@ -316,11 +316,11 @@
316 var x = document.getElementById(id);
317 if(x) x.style.display=value;
318 }
319 function toggleDetail(){
320 var id = parseInt(this.getAttribute('data-id'))
321 var x = gebi("detail-"+id);
322 if( x.style.display=="inline" ){
323 x.style.display="none";
324 changeDisplayById("ellipsis-"+id,"inline");
325 changeDisplayById("links-"+id,"none");
326 }else{
@@ -336,11 +336,11 @@
336 var h = window.innerHeight;
337 var y = absoluteY(x[0]) - h/2;
338 if( y>0 ) window.scrollTo(0, y);
339 }
340 }
341 var lastRow = gebi("m"+tx.rowinfo[tx.rowinfo.length-1].id);
342 var lastY = 0;
343 function checkHeight(){
344 var h = absoluteY(lastRow);
345 if( h!=lastY ){
346 renderGraph();
347
--- src/graph.js
+++ src/graph.js
@@ -316,11 +316,11 @@
316 var x = document.getElementById(id);
317 if(x) x.style.display=value;
318 }
319 function toggleDetail(){
320 var id = parseInt(this.getAttribute('data-id'))
321 var x = document.getElementById("detail-"+id);
322 if( x.style.display=="inline" ){
323 x.style.display="none";
324 changeDisplayById("ellipsis-"+id,"inline");
325 changeDisplayById("links-"+id,"none");
326 }else{
@@ -336,11 +336,11 @@
336 var h = window.innerHeight;
337 var y = absoluteY(x[0]) - h/2;
338 if( y>0 ) window.scrollTo(0, y);
339 }
340 }
341 var lastRow = document.getElementById("m"+tx.rowinfo[tx.rowinfo.length-1].id);
342 var lastY = 0;
343 function checkHeight(){
344 var h = absoluteY(lastRow);
345 if( h!=lastY ){
346 renderGraph();
347
+1 -1
--- src/tree.js
+++ src/tree.js
@@ -34,11 +34,11 @@
3434
3535
function checkState(){
3636
expandMap = history.state || {};
3737
if( '*' in expandMap ) toggleAll(outer_ul, true);
3838
for( var id in expandMap ){
39
- if( id!=='*' ) toggleDir(gebi(id), true);
39
+ if( id!=='*' ) toggleDir(document.getElementById(id), true);
4040
}
4141
}
4242
4343
function belowSubdir(node){
4444
do{
4545
--- src/tree.js
+++ src/tree.js
@@ -34,11 +34,11 @@
34
35 function checkState(){
36 expandMap = history.state || {};
37 if( '*' in expandMap ) toggleAll(outer_ul, true);
38 for( var id in expandMap ){
39 if( id!=='*' ) toggleDir(gebi(id), true);
40 }
41 }
42
43 function belowSubdir(node){
44 do{
45
--- src/tree.js
+++ src/tree.js
@@ -34,11 +34,11 @@
34
35 function checkState(){
36 expandMap = history.state || {};
37 if( '*' in expandMap ) toggleAll(outer_ul, true);
38 for( var id in expandMap ){
39 if( id!=='*' ) toggleDir(document.getElementById(id), true);
40 }
41 }
42
43 function belowSubdir(node){
44 do{
45

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button