Sha256: 14eb789023ad8f61805d1b80132c0c0ed7d832a98b6099489d8b4913aa4d2c99
Contents?: true
Size: 864 Bytes
Versions: 62
Compression:
Stored size: 864 Bytes
Contents
/** * @namespace WORKAREA.recommendationsPlaceholders */ WORKAREA.registerModule('recommendationsPlaceholders', (function () { 'use strict'; var replacePlaceholder = function (placeholder, content) { var $content = $(content); $(placeholder).replaceWith($content); WORKAREA.initModules($content); }, getContent = function (index, placeholder) { var url = $(placeholder).data('recommendationsPlaceholder'); $.get(url).done(_.partial(replacePlaceholder, placeholder)); }, /** * @method * @name init * @memberof WORKAREA.recommendationsPlaceholders */ init = function ($scope) { $('[data-recommendations-placeholder]', $scope).each(getContent); }; return { init: init }; }()));
Version data entries
62 entries across 62 versions & 1 rubygems