{I" class:ETI"BundledAsset;FI"logical_path;TI"(type_station/editables/admin_bar.js;FI" pathname;TI"n/Users/richardadams/github/type_station/app/assets/javascripts/type_station/editables/admin_bar.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+›ŠΎTI" length;TiI" digest;TI"%077d3e83268e0da048c3167d348f1fab;FI" source;TI"(function() { window.TS.AdminBar = (function() { function AdminBar(element) { var drop, template; this.element = element; template = this.element.html(); $('body').append(template); $('#ts-admin-bar-edit').on('click', function() { $('#ts-admin-bar').removeClass('ts-hidden'); $('#ts-admin-bar-edit').addClass('ts-hidden'); return window.TS.enable(); }); $('#ts-admin-bar-cancel').on('click', function() { $('#ts-admin-bar').addClass('ts-hidden'); $('#ts-admin-bar-edit').removeClass('ts-hidden'); return window.TS.disable(); }); $('#ts-admin-bar-save').on('click', function() { return window.TS.save(); }); $('#ts-admin-bar input').on('change', function() { var model; model = window.TS.getModel($(this).data('ts-edit-url')); return model.set($(this).data('ts-field'), { field: $(this).data('ts-field'), value: $(this).val(), type: 'text' }); }); drop = new Drop({ target: $('#ts-admin-bar .ts-options i')[0], content: $('#ts-admin-bar-options')[0], position: 'bottom center', openOn: 'click', classes: 'drop-theme-arrows-bounce-dark' }); } AdminBar.prototype.enable = function() {}; AdminBar.prototype.disable = function() {}; return AdminBar; })(); }).call(this); ;TI"required_assets_digest;TI"%e871679451d682670de18c187b21e5eb;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F