/[jquery]/jquery/jquery-log.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jquery/jquery-log.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 40 by dpavlin, Fri Aug 18 17:13:13 2006 UTC revision 44 by dpavlin, Fri Aug 18 19:13:01 2006 UTC
# Line 17  $.log = { Line 17  $.log = {
17                  return m;                  return m;
18          },          },
19    
20          insert: function(class, m) {          insert: function(what, m) {
21                  if (! _jql) this.create();                  if (! _jql) this.create();
22    
23                  _jql.count[ class ]++;                  _jql.count[ what ]++;
24    
25                  var html = '<div class="jql-' + class + '"'                  var html = '<div class="jql-' + what + '"'
26                  if ( ! _jql.on[class] ) html += ' style="display:none"';                  if ( ! _jql.on[what] ) html += ' style="display:none"';
27                  html += '>' + m + '</div>';                  html += '>' + m + '</div>';
28                  $('#jql-log').append( html );                  $('#jql-log').append( html );
29                  //$('#jql-log').prepend( html );                  //$('#jql-log').prepend( html );
# Line 34  $.log = { Line 34  $.log = {
34                          '<span class="jql-debug">'+_jql.count.debug+'</span> ' +                          '<span class="jql-debug">'+_jql.count.debug+'</span> ' +
35                          '<span class="jql-error">'+_jql.count.error+'</span>'                          '<span class="jql-error">'+_jql.count.error+'</span>'
36                  );                  );
37    
38                    this.scroll();
39            },
40    
41            scroll: function() {
42                    // poor man's scroll to bottom
43                    var e = document.getElementById('jql-log');
44                    e.scrollTop = e.scrollHeight - e.clientHeight;
45          },          },
46    
47          /* public functions */          /* public functions */
# Line 81  $.log = { Line 89  $.log = {
89                          $('#jql').toggle();                          $('#jql').toggle();
90                          $('#jql-show').toggle();                          $('#jql-show').toggle();
91                  }                  }
92                    this.scroll();
93                  return false;                  return false;
94          },          },
95    

Legend:
Removed from v.40  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26