Sha256: 497ee3beb5a2d4811c4d8f37a58730d7da08f52af7864642a9555fdb14668415
Contents?: true
Size: 648 Bytes
Versions: 14
Compression:
Stored size: 648 Bytes
Contents
pageflow.externalLinks.Site = Backbone.Model.extend({ modelName: 'site', paramRoot: 'site', i18nKey: 'pageflow/external_links/site', mixins: [pageflow.failureTracking, pageflow.transientReferences], defaults: { 'open_in_new_tab': true }, initialize: function(attributes, options) { this.listenTo(this, 'change', function() { this.save(); }); }, urlRoot: function() { return this.isNew() ? this.collection.url() : '/external_links/sites'; }, thumbnailFile: function() { return this.getReference('thumbnail', pageflow.imageFiles); }, title: function() { return this.get('title'); } });
Version data entries
14 entries across 14 versions & 1 rubygems