Changeset 1041

Show
Ignore:
Timestamp:
11/24/07 11:29:37 (11 months ago)
Author:
jimfree..@gmail.com
Message:

Added id to password_control. In particular, this makes labelover possible for password input.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/merb_helpers/lib/merb_helpers/form_helpers.rb

    r1040 r1041  
    187187      #     <%= password_control :password, :label => 'New Password' %> 
    188188      def password_control(col, attrs = {}) 
    189         attrs.merge!(:name => control_name(col)
     189        attrs.merge!(:name => control_name(col), :id => control_id(col)
    190190        errorify_field(attrs, col) 
    191191        password_field(control_name_value(col, attrs))