/[sql-web-session]/sql-editor.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 /sql-editor.js

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

revision 20 by dpavlin, Sat Apr 18 14:05:13 2009 UTC revision 23 by dpavlin, Sat Apr 18 23:14:41 2009 UTC
# Line 63  $(document).ready( function() { Line 63  $(document).ready( function() {
63                          console.error('unknown click on ', tag, e);                          console.error('unknown click on ', tag, e);
64                  }                  }
65                    
66                  $('form#sql').addClass('visible');                  $('form#sql').addClass('visible').addClass('fixed');
67          };          };
68    
69          $('table#results').bind('mouseup', click_on_cell);          $('table#results').bind('mouseup', click_on_cell);
70    
71          $('#status').bind('click', function() {          $('#status').bind('click', function() {
72                  $('form#sql').toggleClass('visible');                  $('form#sql').toggleClass('visible').addClass('fixed');
73          });          });
74    
75          $('input[name=lookup_col]').bind('click', function(e) {          $('input[name=lookup_col]').bind('click', function(e) {
# Line 86  $(document).ready( function() { Line 86  $(document).ready( function() {
86                          .removeClass('changed')                          .removeClass('changed')
87                          .attr('disabled', 1);                          .attr('disabled', 1);
88    
89                  $.get('', { lookup_col: column }, function(data,textStatus) {                  var where_parts = [];
90                    $('input[name=where_parts]').each(function(){ if (this.checked) where_parts.push(this.value) });
91                    var args = {
92                            lookup_col: column,
93                            where_parts: where_parts,
94                    };
95                    console.debug( 'get', args );
96                    $.get('', args, function(data,textStatus) {
97                          console.debug( data, textStatus );                          console.debug( data, textStatus );
98                          l.addClass('changed');                          l.addClass('changed');
99                          l.html( data );                          l.html( data );

Legend:
Removed from v.20  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.26