/[RFID]/www/rfid.html
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 /www/rfid.html

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

revision 57 by dpavlin, Fri Jun 26 11:47:01 2009 UTC revision 66 by dpavlin, Thu Feb 11 14:14:21 2010 UTC
# Line 31  function got_visible_tags(data,textStatu Line 31  function got_visible_tags(data,textStatu
31                  html = '<ul class="tags">';                  html = '<ul class="tags">';
32                  $.each(data.tags, function(i,tag) {                  $.each(data.tags, function(i,tag) {
33                          console.debug( i, tag );                          console.debug( i, tag );
34                          html += '<li class=' + tag.security + '><tt>' + tag.sid + ' ' + tag.content + '</tt>';                          html += '<li><tt class=' + tag.security + '>' + tag.sid;
35                            if ( tag.content ) {
36                                    html += ' <a href="https://koha-dev.rot13.org:8443/cgi-bin/koha/members/member.pl?member=' + tag.content + '" title="lookup in Koha" target="koha-lookup">' + tag.content + '</a>';
37                                    html += '</tt>';
38                                    html += '<form method=get action=program style="display:inline">'
39                                            + '<input type=hidden name='+tag.sid+' value="blank">'
40                                            + '<input type=submit value="Blank" onclick="return confirm(\'Blank tag '+tag.sid+'\')">'
41                                            + '</form>'
42                                    ;
43                            } else {
44                                    html += '</tt>';
45                                    html += ' <form method=get action=program style="display:inline">'
46                                            + '<!-- <input type=checkbox name=secure value='+tag.sid+' title="secure tag"> -->'
47                                            + '<input type=text name='+tag.sid+' size=12>'
48                                            + '<input type=submit value="Program">'
49                                            + '</form>'
50                                    ;
51                            }
52                  });                  });
53                  html += '</ul>';                  html += '</ul>';
54          }          }
# Line 58  $(document).ready(function() { Line 75  $(document).ready(function() {
75                          scan_tags();                          scan_tags();
76                  });                  });
77                  $('input#pull-reader').attr('checked', true); // force check on load                  $('input#pull-reader').attr('checked', true); // force check on load
78    
79                    $('div#tags').click( function() {
80                            $('input#pull-reader').attr('checked', false);
81                    } );
82    
83                  scan_tags();                  scan_tags();
84  });  });
85  </script>  </script>

Legend:
Removed from v.57  
changed lines
  Added in v.66

  ViewVC Help
Powered by ViewVC 1.1.26