/[drupal]/contributions/modules/tablemanager/misc/tablemanager.js
ViewVC logotype

Diff of /contributions/modules/tablemanager/misc/tablemanager.js

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

revision 1.2, Tue Apr 15 21:01:44 2008 UTC revision 1.3, Sun Apr 20 17:39:29 2008 UTC
# Line 1  Line 1 
1  // $Id$  // $Id$
   
 // Global killswitch: only run if we are in a supported browser.  
 if (Drupal.jsEnabled) {  
   $(document).ready(function () {  
     // initiate farbtastic colorpicker  
     var farb = $.farbtastic("div.colorpicker");  
     $("input.color_textfield").each(function () {  
       // set the background colors of all of the textfields appropriately  
 //      $("table#tablemanager-example-table " + this.name).css("background-color", farb.color);  
       farb.linkTo(this);  
       // update the farbtastic colorpicker and example table when this textfield is clicked  
       $(this).click(function () {  
         $("table#tablemanager-example-table " + this.name).css("background-color", farb.color);  
         farb.linkTo(this);  
       });  
     });  
   
     $("input.form-checkbox").each(function () {  
       $(this).change(function () {  
       var current = $("table#tablemanager-example-table " + this.value);  
       if (this.checked) {  
         $(current).css("border", "1px solid #000");  
       }  
       else {  
         $(current).css("border", "none");  
       }  
       });  
     });  
   });  
 }  

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2