remove disable_with depreciation warning.

This commit is contained in:
Maxwell Salzberg 2012-05-31 22:35:07 -07:00
parent 4db207b3dd
commit 018e513130
6 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@
#aspect_name_edit.hidden #aspect_name_edit.hidden
= form_for @aspect, :remote => true do |aspect| = form_for @aspect, :remote => true do |aspect|
= aspect.text_field :name, :maxlength => 20 = aspect.text_field :name, :maxlength => 20
= aspect.submit t('.update'), :disable_with => t('.updating'), :class => 'button' = aspect.submit t('.update'), 'data-disable-with' => t('.updating'), :class => 'button'
- if @contacts.count > 0 - if @contacts.count > 0
= render 'shared/contact_list', :aspect => @aspect, :contacts => @contacts = render 'shared/contact_list', :aspect => @aspect, :contacts => @contacts

View file

@ -7,4 +7,4 @@
.control-group .control-group
= hidden_field_tag :post_id, post_id, :id => "post_id_on_#{post_id}" = hidden_field_tag :post_id, post_id, :id => "post_id_on_#{post_id}"
= text_area_tag :text, nil, :class => "span12 comment_box", :id => "comment_text_on_#{post_id}", :placeholder => t('.comment'), :autofocus => true = text_area_tag :text, nil, :class => "span12 comment_box", :id => "comment_text_on_#{post_id}", :placeholder => t('.comment'), :autofocus => true
= submit_tag t('.comment'), :id => "comment_submit_#{post_id}", :disable_with => t('.commenting'), :class => "btn primary" = submit_tag t('.comment'), :id => "comment_submit_#{post_id}", 'data-disable-with' => t('.commenting'), :class => "btn primary"

View file

@ -24,4 +24,4 @@
.bd .bd
= form_for [conversation, Message.new] do |message| = form_for [conversation, Message.new] do |message|
= message.text_area :text, :rows => 5, :tabindex => 1 = message.text_area :text, :rows => 5, :tabindex => 1
= message.submit t('.reply').capitalize, :disable_with => t('.replying'), :class => 'button creation', :tabindex => 2 = message.submit t('.reply').capitalize, 'data-disable-with' => t('.replying'), :class => 'button creation', :tabindex => 2

View file

@ -50,4 +50,4 @@
.clearfix .clearfix
.bottom_submit_section .bottom_submit_section
= conversation.submit t('.send'), :disable_with => t('.sending'), :class => 'button creation' = conversation.submit t('.send'), 'data-disable-with' => t('.sending'), :class => 'button creation'

View file

@ -6,6 +6,6 @@
= form_for(Request.new, :remote => true ) do |request| = form_for(Request.new, :remote => true ) do |request|
= request.select(:into, options_from_collection_for_select(aspects, "id", "name")) = request.select(:into, options_from_collection_for_select(aspects, "id", "name"))
= request.hidden_field :to, :value => destination_handle = request.hidden_field :to, :value => destination_handle
= request.submit t('people.person.add_contact'), :disable_with => t('requests.create.sending') = request.submit t('people.person.add_contact'), 'data-disable-with' => t('requests.create.sending')
.message.hidden .message.hidden
%i= t('.sent') %i= t('.sent')

View file

@ -6,6 +6,6 @@
= form_for Request.new, :remote => true do |request| = form_for Request.new, :remote => true do |request|
= request.hidden_field :into, :value => "changeme" = request.hidden_field :into, :value => "changeme"
= request.hidden_field :to, :value => destination_handle = request.hidden_field :to, :value => destination_handle
= request.submit '+', :class => 'add', :disable_with => t('requests.create.sending') = request.submit '+', :class => 'add', 'data-disable-with' => t('requests.create.sending')
.message.hidden .message.hidden
%i= t('requests.new_request_to_person.sent') %i= t('requests.new_request_to_person.sent')