Fossil

Check-in [e6d3e878]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Wrapped the timeline-rendering JS in an anonymous function so that it no longer pollutes the global namespace. Added "type" tag to the script (required by HTML4, optional in HTML5).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e6d3e878a9a925787eb5f60f1698f2299478acda
User & Date: stephan 2014-03-11 21:05:40
References
2014-03-13
13:17
Backout [e6d3e878a9]: Clicking on timeline nodes for displaying a diff doesn't work any more with this change (Sorry, Stefan!). check-in: afcdc6ce user: jan.nijtmans tags: trunk
Context
2014-03-11
22:06
Update to SQLite 3.8.4.1 check-in: b93b3e8f user: jan.nijtmans tags: trunk
21:05
Wrapped the timeline-rendering JS in an anonymous function so that it no longer pollutes the global namespace. Added "type" tag to the script (required by HTML4, optional in HTML5). check-in: e6d3e878 user: stephan tags: trunk
2014-03-10
21:42
Update the custom MinGW makefile. check-in: fd223e5e user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
...
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
  int fileDiff              /* True for file diff.  False for check-in diff */
){
  if( pGraph && pGraph->nErr==0 && pGraph->nRow>0 ){
    GraphRow *pRow;
    int i;
    char cSep;

    @ <script>
    @ var railPitch=%d(pGraph->iRailPitch);

    /* the rowinfo[] array contains all the information needed to generate
    ** the graph.  Each entry contains information for a single row:
    **
    **   id:  The id of the <div> element for the row. This is an integer.
    **        to get an actual id, prepend "m" to the integer.  The top node
................................................................................
    @ var lastY = 0;
    @ function checkHeight(){
    @   var h = absoluteY(lastId);
    @   if( h!=lastY ){
    @     renderGraph();
    @     lastY = h;
    @   }
    @   setTimeout("checkHeight();", 1000);
    @ }
    @ checkHeight();
    @ </script>
  }
}

/*
** Create a temporary table suitable for storing timeline data.
*/
static void timeline_temp_table(void){







|







 







|


|







590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
...
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
  int fileDiff              /* True for file diff.  False for check-in diff */
){
  if( pGraph && pGraph->nErr==0 && pGraph->nRow>0 ){
    GraphRow *pRow;
    int i;
    char cSep;

    @ <script type='text/javascript'>(function(){
    @ var railPitch=%d(pGraph->iRailPitch);

    /* the rowinfo[] array contains all the information needed to generate
    ** the graph.  Each entry contains information for a single row:
    **
    **   id:  The id of the <div> element for the row. This is an integer.
    **        to get an actual id, prepend "m" to the integer.  The top node
................................................................................
    @ var lastY = 0;
    @ function checkHeight(){
    @   var h = absoluteY(lastId);
    @   if( h!=lastY ){
    @     renderGraph();
    @     lastY = h;
    @   }
    @   setTimeout(arguments.callee, 1000);
    @ }
    @ checkHeight();
    @ })()</script>
  }
}

/*
** Create a temporary table suitable for storing timeline data.
*/
static void timeline_temp_table(void){