Add selection functionality
authorJoey Schulze <joey@infodrom.org>
Sun, 6 Apr 2014 17:51:27 +0000 (17:51 +0000)
committerJoey Schulze <joey@infodrom.org>
Sun, 6 Apr 2014 17:51:27 +0000 (17:51 +0000)
src/InfoCon/account/list.wml

index 405f7a2..524d0fc 100644 (file)
 ?>
 </table><p>
 
+<protect><script type="text/javascript">
+$(function(){
+    $('table.border tr').not('.head').click(function(){
+       $(this).toggleClass('highlight');
+       if ($(this).hasClass('highlight'))
+           $(this).css('backgroundColor','#add8e6');
+       else
+           $(this).css('backgroundColor','');
+    });
+});
+</script></protect>
 </page>
 
 # Local variables: