Sha256: ed2c00ad0d94ffea6f0dd52145d16907a54f050057899d0eccaccd8019170518
Contents?: true
Size: 1.31 KB
Versions: 4
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"%39cafaf9b60624a18619d60fd5aee88d; 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"%5dd16a4b71083321f295c283324dcafc; FI" _version; TI"%a56df69ef97ba4d9f1a23bf9b0add58a; F
Version data entries
4 entries across 2 versions & 1 rubygems