Sha256: 6baf6da31570bf38a0798f7e3b4ea69745d7046e99d470464ecd4093e80747af
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1392263977.262534:@value"+{I" class:EFI"ProcessedAsset; FI"logical_path; FI"#telephony/views/status_view.js; TI" pathname; FI"b/Users/bobcook/rails_projects/zestphone/app/assets/javascripts/telephony/views/status_view.js; TI"content_type; FI"application/javascript; FI" mtime; FI"2014-01-21T14:42:10-07:00; FI"length; FiÝI"digest; F"%9f7b3d99a890cba0deda405fb5c1ec8aI"source; FI"ÝZest.Telephony.Views.StatusView = Backbone.View.extend({ className: 'agent-status-wrapper', events: { 'click button' : 'toggleAvailable' }, template: JST["templates/telephony/status_view"], initialize: function (options) { this.agent = new Zest.Telephony.Models.Agent({csr_id: options.csrId}); this.agent.bind("change", this.render, this); $(document).bind("telephony:csrDidChangeStatus", $.proxy(this.renderStatus, this)); $(document).bind("telephony:csrNotAvailable", $.proxy(this.setNotAvailable, this)); $(document).bind("telephony:toggleCsrStatus", $.proxy(this.toggleAvailable, this)); }, toggleAvailable: function(event) { event.preventDefault(); this.agent.toggleAvailable(); }, setNotAvailable: function() { this.agent.updateStatus(); }, renderStatus: function(event, data) { this.agent.set(data); }, render: function() { $(this.el).html(this.template({ agent: this.agent })); return this; } }); ; FI"dependency_digest; F"%16d1764e2a9bff29d81466634e2f2d8cI"required_paths; F[I"b/Users/bobcook/rails_projects/zestphone/app/assets/javascripts/telephony/views/status_view.js; TI"dependency_paths; F[{I" path; FI"b/Users/bobcook/rails_projects/zestphone/app/assets/javascripts/telephony/views/status_view.js; TI" mtime; FI"2014-01-21T14:42:10-07:00; FI"digest; F"%9f7b3d99a890cba0deda405fb5c1ec8aI" _version; F"%6776f581a4329e299531e1d52aa59832
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
telephony-1.0.4 | spec/dummy/tmp/cache/assets/D40/810/sprockets%2F639209b553132c69c4ef4c2aac8aff56 |