Consistent styling
This commit is contained in:
@@ -11,7 +11,7 @@ class Selector
|
||||
self = this
|
||||
|
||||
@dropdown.on 'click', (e) ->
|
||||
$(this).toggleClass('active')
|
||||
$(this).toggleClass('active') unless $(this).hasClass('disabled')
|
||||
false
|
||||
|
||||
@options.on 'click', (e) ->
|
||||
|
||||
@@ -3,6 +3,7 @@ $ ->
|
||||
$contents = $form.find('textarea')
|
||||
$_button = $form.find('input[type="submit"]')
|
||||
$button = $form.find('a[role="submit"]')
|
||||
$syntax_selector = $('#syntax-selector')
|
||||
|
||||
# Hide generic button, show styled button
|
||||
$_button.hide()
|
||||
@@ -10,6 +11,8 @@ $ ->
|
||||
$contents.focus()
|
||||
|
||||
# Binding submit event to new button
|
||||
$button.on 'mouseup', ->
|
||||
$form.submit()
|
||||
$button.on 'click', (e) ->
|
||||
$form.submit() unless $(this).hasClass('disabled')
|
||||
$(this).addClass('disabled')
|
||||
$syntax_selector.addClass('disabled')
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user