2013-07-10 09:46:37 +00:00
|
|
|
$ ->
|
2013-07-10 18:20:10 +00:00
|
|
|
$form = $('form')
|
|
|
|
$contents = $form.find('textarea')
|
|
|
|
$_button = $form.find('input[type="submit"]')
|
|
|
|
$button = $form.find('a[role="submit"]')
|
2013-07-10 09:46:37 +00:00
|
|
|
|
|
|
|
# Hide generic button, show styled button
|
|
|
|
$_button.hide()
|
|
|
|
$button.show()
|
|
|
|
$contents.focus()
|
|
|
|
|
|
|
|
# Binding submit event to new button
|
2013-07-10 12:02:19 +00:00
|
|
|
$button.on 'mouseup', ->
|
2013-07-10 09:46:37 +00:00
|
|
|
$form.submit()
|
|
|
|
false
|