Sha256: eb969f6991ed4a38c88c8f795c164de47c0e3159722954dd4111d05e56da222a
Contents?: true
Size: 982 Bytes
Versions: 17
Compression:
Stored size: 982 Bytes
Contents
pageflow.externalLinks.SidebarController = Backbone.Marionette.Controller.extend({ initialize: function(options) { this.region = options.region; }, sites: function(pageId) { var page = pageflow.pages.get(pageId); var referer = page ? '/pages/' + page.id + '/links ' : '/'; this.region.show(new pageflow.BackButtonDecoratorView({ referer: referer, view: new pageflow.externalLinks.SitesView({ selectionHandler: page && new pageflow.externalLinks.SiteSelectionHandler({ page: page }), page: page, referer: referer }) })); }, site: function(id, pageId, returnTo) { var page = pageflow.pages.get(pageId); var region = this.region; pageflow.externalLinks.sites.ensureFetched().then(function() { region.show(new pageflow.externalLinks.EditSiteView({ model: pageflow.externalLinks.sites.get(id), page: page, returnTo: returnTo })); }); } });
Version data entries
17 entries across 17 versions & 1 rubygems