Sha256: 2a3c162164d9d59068b584104c9ff38d87bd3e787dc13c58b04d904bd32cdf12
Contents?: true
Size: 717 Bytes
Versions: 64
Compression:
Stored size: 717 Bytes
Contents
pageflow.PageLink = Backbone.Model.extend({ mixins: [pageflow.transientReferences], i18nKey: 'pageflow/page_link', targetPage: function() { return pageflow.pages.getByPermaId(this.get('target_page_id')); }, label: function() { return this.get('label'); }, editPath: function() { return '/page_links/' + this.id; }, getPageId: function() { return this.collection.page.id; }, toSerializedJSON: function() { return _.omit(this.attributes, 'highlighted', 'position'); }, highlight: function() { this.set('highlighted', true); }, resetHighlight: function() { this.unset('highlighted'); }, remove: function() { this.collection.remove(this); } });
Version data entries
64 entries across 64 versions & 1 rubygems