/[drupal]/contributions/modules/compact_forms/compact_forms.js
ViewVC logotype

Diff of /contributions/modules/compact_forms/compact_forms.js

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

revision 1.2.2.2, Wed May 27 08:15:26 2009 UTC revision 1.2.2.3, Thu Aug 6 20:27:26 2009 UTC
# Line 1  Line 1 
1  // $Id: compact_forms.js,v 1.2.2.1 2009/05/06 23:43:47 sun Exp $  // $Id: compact_forms.js,v 1.2.2.2 2009/05/27 08:15:26 sun Exp $
2    
3  (function ($) {  (function ($) {
4    
# Line 16  $.fn.compactForm = function (stars, colo Line 16  $.fn.compactForm = function (stars, colo
16        var context = this.form;        var context = this.form;
17        var $label = $(this);        var $label = $(this);
18        var $field = $('#' + $label.attr('for'), context);        var $field = $('#' + $label.attr('for'), context);
19        if ($field.attr('type') != 'text' && $field.attr('type') != 'password') {        if (!$field.is('input:text,input:password,textarea')) {
20          return;          return;
21        }        }
22    

Legend:
Removed from v.1.2.2.2  
changed lines
  Added in v.1.2.2.3

  ViewVC Help
Powered by ViewVC 1.1.2