app/assets/javascripts/shoppe/application.coffee in shoppe-1.0.7 vs app/assets/javascripts/shoppe/application.coffee in shoppe-1.0.8
- old
+ new
@@ -11,9 +11,13 @@
$('input.focus').focus()
# When clicking the order search button, toggle the form
$('a[rel=searchOrders]').on 'click', ->
$('div.orderSearch').toggle()
+
+ # When clicking the customer search button, toggle the form
+ $('a[rel=searchCustomers]').on 'click', ->
+ $('div.customerSearch').toggle()
# Add a new attribute to a table
$('a[data-behavior=addAttributeToAttributesTable]').on 'click', ->
table = $('table.productAttributes')
if $('tbody tr', table).length == 1 || $('tbody tr:last td:first input', table).val().length > 0