Sha256: 432af3db6a039b8003bbf6e1199e839ec19d2da41928d568d1bb898eef734576
Contents?: true
Size: 520 Bytes
Versions: 17
Compression:
Stored size: 520 Bytes
Contents
pageflow.externalLinks.SiteFileSelectionHandler = function(options) { this.call = function(file) { pageflow.externalLinks.sites.ensureFetched().then(function() { var site = pageflow.externalLinks.sites.get(options.id); site.setReference(options.attributeName, file); }); }; this.getReferer = function() { var query = (options.pageId && options.returnTo) ? '/?page=' + options.pageId + '&return_to=' + options.returnTo : ''; return '/external_links/sites/' + options.id + query; }; };
Version data entries
17 entries across 17 versions & 1 rubygems