Sha256: 1c54b795c2c1c43d8cc7f3efacedcd1d833a5a36c032288a2621d4654fc48171
Contents?: true
Size: 538 Bytes
Versions: 9
Compression:
Stored size: 538 Bytes
Contents
ready = -> if $('.account-theme').length > 0 layout_parts = $('.account-theme').data('layout-parts') show_layout_parts(layout_parts) $(document).on 'ready page:load', ready $(document).on 'change', '.account-theme select', -> layout_parts = $(this).find('option:selected').data('layout-parts').split(" ") show_layout_parts(layout_parts) show_layout_parts = (layout_parts) -> $('tr.layout-part').hide() for layout_part in layout_parts if layout_part $('tr.layout-part[data-name=' + layout_part + ']').show()
Version data entries
9 entries across 9 versions & 1 rubygems