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

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

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

revision 1.2, Wed Apr 23 08:25:16 2008 UTC revision 1.3, Thu Apr 24 15:30:36 2008 UTC
# Line 25  if (Drupal.jsEnabled) { Line 25  if (Drupal.jsEnabled) {
25            var name = tablemanager_convert(field);            var name = tablemanager_convert(field);
26            $("input[name='" + field + "']").css('backgroundColor', farb.color);            $("input[name='" + field + "']").css('backgroundColor', farb.color);
27            $("input[name='" + field + "']").attr('value', farb.color);            $("input[name='" + field + "']").attr('value', farb.color);
28            $(name[1]).css(tablemanager_normal_field(name[2]), farb.color);            // only update preview table if the corresponding radio button is checked
29              if ($("input[name='" + tablemanager_normal_field(field) + "']:checked").attr('value') == 'custom') {
30                $(name[1]).css(tablemanager_normal_field(name[2]), farb.color);
31              }
32          });          });
33        }).filter(':first').click();        }).filter(':first').click();
34      });      });

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

  ViewVC Help
Powered by ViewVC 1.1.2