Sha256: 6d4529347a186cd26f7660ec53e83ee06e9a38831b1976dc2f552fa91b9d4084

Contents?: true

Size: 640 Bytes

Versions: 9

Compression:

Stored size: 640 Bytes

Contents

<% if @sphere.errors.present? %>
  $('#new_sphere_input_block').html("<%= escape_javascript render(:partial => 'spheres/form') %>");
<% else %>
  // Hide #relations and #permissions
  $('#permissions').html("");
  $('#permissions').hide();
  $('#relations').hide();

  // Restore form
  $('#sphere_name').val('');
  $('#new_sphere_input_block').hide();
  $('#new_sphere_title_block').show();

  // Refresh list
  $('#spheres_list').html("<%= escape_javascript render(:partial => 'spheres/list', :object => current_subject.spheres) %>");

  // Select sphere
  $('#' + '<%= dom_id @sphere %>').checkBox('changeCheckStatus', true);
<% end %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
social_stream-base-0.6.3 app/views/spheres/create.js.erb
social_stream-base-0.6.2 app/views/spheres/create.js.erb
social_stream-base-0.6.1 app/views/spheres/create.js.erb
social_stream-base-0.6.0 app/views/spheres/create.js.erb
social_stream-base-0.5.2 app/views/spheres/create.js.erb
social_stream-base-0.5.1 app/views/spheres/create.js.erb
social_stream-base-0.5.0 app/views/spheres/create.js.erb
social_stream-0.4.6 app/views/spheres/create.js.erb
social_stream-0.4.5 app/views/spheres/create.js.erb