Sha256: 4f6f90081f01ade805626bc791ec99163a14eb9ce37f403398bcc90b39405507
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"*blogelator/routes/posts_edit_route.js; FI" pathname; TI"k/Users/brian/github/codelation/blogelator/app/assets/javascripts/blogelator/routes/posts_edit_route.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+IĆSI"length; TiII"digest; TI"%bc4b616765719dcdde349234991270e9; FI"source; TI"I(function() { "use strict"; App.PostsEditRoute = Ember.Route.extend({ actions: { willTransition: function(transition) { var record = this.get('controller.content'); // Confirm transition if there are unsaved changes if (record.get('isDirty')) { if (confirm("Are you sure you want to lose unsaved changes?")) { record.rollback(); return true; } else { transition.abort(); } } else { return true; } } }, model: function(params) { return this.store.find('post', params.post_id); }, renderTemplate: function() { this.render(); this.render('posts/_form_action_bar', { into: 'application', outlet: 'footer' }); } }); })(); ; TI"required_assets_digest; TI"%76663b855b6da259059eb8799ebc276f; FI" _version; TI"%361c512b9086418778df946c0d278f91; F
Version data entries
2 entries across 1 versions & 1 rubygems