end of day commit
This commit is contained in:
@@ -5,5 +5,8 @@
|
||||
#= require_directory .
|
||||
#= require_self
|
||||
$ ->
|
||||
# Responsive menu
|
||||
$('.menu-secondary-toggle').click -> $('.nav.secondary').toggleClass('active')
|
||||
|
||||
# Foundation javascript support
|
||||
$(document).foundation()
|
||||
|
||||
@@ -8,7 +8,7 @@ App.Table = DS.Model.extend
|
||||
occupied: attr 'boolean'
|
||||
section: DS.belongsTo('section')
|
||||
product_orders: DS.hasMany('product_order')
|
||||
#active_list: DS.belongsTo('list')
|
||||
active_list: DS.belongsTo('list')
|
||||
#active_list: (->
|
||||
#@get('list')
|
||||
#).property('list')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# http://emberjs.com/guides/models/defining-a-store/
|
||||
DS.RESTAdapter.reopen
|
||||
namespace: 'waiter'
|
||||
#DS.RESTAdapter.reopen
|
||||
#namespace: 'waiter'
|
||||
|
||||
App.ApplicationSerializer = DS.ActiveModelSerializer
|
||||
App.CustomAdapter = DS.RESTAdapter.extend
|
||||
@@ -9,5 +9,8 @@ App.CustomAdapter = DS.RESTAdapter.extend
|
||||
pathForType: (type)->
|
||||
decamelized = Ember.String.decamelize(type)
|
||||
Ember.String.pluralize(decamelized)
|
||||
App.Store = DS.Store.extend
|
||||
adapter: App.CustomAdapter
|
||||
#App.Store = DS.Store.extend
|
||||
#adapter: App.CustomAdapter
|
||||
App.ApplicationStore = DS.Store.extend
|
||||
adapter: DS.ActiveModelAdapter.extend
|
||||
namespace: 'waiter'
|
||||
|
||||
@@ -5,5 +5,5 @@ each product_category in controller
|
||||
ul.product_category-products
|
||||
each product in product_category.products
|
||||
li
|
||||
a{action addProduct product } href="#" = product.name
|
||||
a{action "addProduct" product } href="#" = product.name
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
position: relative
|
||||
list-style: none
|
||||
float: left
|
||||
&.contact
|
||||
float: right
|
||||
a
|
||||
border: 0
|
||||
color: white
|
||||
|
||||
Reference in New Issue
Block a user