/[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.5, Wed May 27 08:15:17 2009 UTC revision 1.6, Thu Aug 6 20:27:22 2009 UTC
# Line 1  Line 1 
1  // $Id: compact_forms.js,v 1.4 2009/05/06 23:43:39 sun Exp $  // $Id: compact_forms.js,v 1.5 2009/05/27 08:15:17 sun Exp $
2    
3  (function ($) {  (function ($) {
4    
# Line 14  $.fn.compactForm = function (stars, colo Line 14  $.fn.compactForm = function (stars, colo
14        var context = this.form;        var context = this.form;
15        var $label = $(this);        var $label = $(this);
16        var $field = $('#' + $label.attr('for'), context);        var $field = $('#' + $label.attr('for'), context);
17        if ($field.attr('type') != 'text' && $field.attr('type') != 'password') {        if (!$field.is('input:text,input:password,textarea')) {
18          return;          return;
19        }        }
20    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2