Sha256: fc1dde3004e9253eb8b0fc1cf034eae9a01b9e967af744a25ec9759695a1aedf

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

window.RightnowOms = Ember.Application.create
  rootElement: '#rightnow-oms'
  commit: (force = false)->
    clearTimeout(@_commitTimer) if @_commitTimer

    @_commitTimer = setTimeout((->
      window.RightnowOms.store.commit() if window.RightnowOms.config.get('autoCommit') || force
    ), 500)

  _commitTimer: null

window.RightnowOms.store = DS.Store.create
  adapter:
    DS.MyRESTAdapter.create
      bulkCommit: false
      namespace: 'rightnow_oms'

window.RightnowOms.config = Em.Object.create()
window.RightnowOms.config.set('autoCommit', true)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rightnow_oms-0.1.4 app/assets/javascripts/rightnow_oms/app/app.js.coffee