Sha256: 954491de1af2647f51e2aea1875c2b446997f166bf6b2c63eb3e4a179483cada
Contents?: true
Size: 1.88 KB
Versions: 16
Compression:
Stored size: 1.88 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"!shared/new_shareable_form.js; FI" pathname; TI"u/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/shared/new_shareable_form.js.erb; FI"content_type; TI"application/javascript; TI" mtime; Tl+?VI"length; TiI"digest; TI"%d0c7e90a1a4f8553255fe0ffb10eff83; FI"source; TI" ;(function() { function addSharingToNewShareableForm() { 'use strict'; var actionType, displayName, itemType, placeholder, template; placeholder = $('.new-shareable-form-after-form-groups'); actionType = placeholder.data('actionType'); itemType = placeholder.data('itemType'); template = '<div class=\"form-group\">\n <label for=\"{{ ITEM_TYPE }}_shared_item\">Share the content of this {{ ITEM_TYPE_DISPLAY }}?<\/label>\n <label class=\"radio-inline\">\n <input type=\"radio\" class=\"{{ ITEM_TYPE }}_shared_item_true\" name=\"{{ ITEM_TYPE }}[shared_items_attributes][][is_public]\" id=\"{{ ITEM_TYPE }}_shared_item_1\" value=\"1\" checked> Yes\n <\/label>\n <label class=\"radio-inline\">\n <input type=\"radio\" name=\"{{ ITEM_TYPE }}[shared_items_attributes][][is_public]\" id=\"{{ ITEM_TYPE }}_shared_item_2\" value=\"0\"> No\n <\/label>\n<\/div>\n\n<input type=\"hidden\" name=\"{{ ITEM_TYPE }}[shared_items_attributes][][action_type]\" value=\"{{ ACTION_TYPE }}\">\n'; displayName = itemType; if (displayName) { displayName = displayName.replace('_', ' '); } template = template.replace(/{{ ITEM_TYPE }}/g, itemType).replace(/{{ ITEM_TYPE_DISPLAY }}/g, displayName).replace(/{{ ACTION_TYPE }}/g, actionType); placeholder.append(template); }; $(document).on('page:change', addSharingToNewShareableForm); })(); ; TI"required_assets_digest; TI"%52e645fba562c9412f48b6b7e62a98a3; FI" _version; TI"%069e88c06b889877799890854d7f4c40; F
Version data entries
16 entries across 8 versions & 1 rubygems