Permalink
Browse files

Use jQuery UI class for disablement

  • Loading branch information...
1 parent 83376fc commit 811e7ec240db759ae7d2399d8aeeb7c5f072fea7 @mwilden mwilden committed Apr 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/assets/javascripts/catalog/index.js.coffee.erb
@@ -71,12 +71,12 @@ submit_form = ->
start_spinning = ($form) ->
$spinnerElement = $(':button', $form).parent()
- $spinnerElement.spinner position: 'left', leftOffset: 7, img: spinner_path
- $(':button', $spinnerElement).attr 'disabled', 'disabled'
+ $spinnerElement.spinner position: 'left', leftOffset: 1, img: spinner_path
+ $(':button', $spinnerElement).addClass('ui-state-disabled')
stop_spinning = ->
$spinnerElement = $('.spinner')
- $(':button', $spinnerElement).removeAttr 'disabled'
+ $(':button', $spinnerElement).removeClass('ui-state-disabled')
$spinnerElement.spinner 'remove'
update_form = (data, statusText, xhr, $form) ->

0 comments on commit 811e7ec

Please sign in to comment.