Sha256: a2376b11563cbb6aea15dd8e8fc1d7f23b4e2908caad49fef9ed7ed9e9b6ff0b

Contents?: true

Size: 934 Bytes

Versions: 18

Compression:

Stored size: 934 Bytes

Contents

$('.modal, .modal-backdrop').remove();
$('.cke_skin_kama').remove();

<% params[:remote] = true if params[:remote].nil? %>
<% params[:next_remote] = params[:remote] if params[:next_remote].nil? %>

<% params[:form_partial] ||= "form" %>
<% params[:form_title] ||= params[:modal_title].presence || "#{t('editing')} #{t(controller_name.singularize)}" %>

var $modal = $('<%= j(render "edit", form_partial: params[:form_partial], form_title: params[:form_title]) %>');
$modal.modal();
$modal.on('shown', function(){

  // Fix Rich Table Component
  renderModalTableGrid();

  // call jquery-file-upload
  renderJqueryFileUpload();

  // call ckeditor
  renderRemoteCkeditor();

  // call tokens
  renderTokens();

}).on('hidden', function(){
  $('.showing_new_form').removeClass('showing_new_form');
  $('.lvr_entry_edited').removeClass('lvr_entry_edited'); 
  $('.modal, .modal-backdrop, .token-input-dropdown-bootstrap').remove();
});

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rich_table_component-0.0.30 app/views/application/edit.js.erb
rich_table_component-0.0.29 app/views/application/edit.js.erb
rich_table_component-0.0.28 app/views/application/edit.js.erb
rich_table_component-0.0.27 app/views/application/edit.js.erb
rich_table_component-0.0.26 app/views/application/edit.js.erb
rich_table_component-0.0.24 app/views/application/edit.js.erb
rich_table_component-0.0.22 app/views/application/edit.js.erb
rich_table_component-0.0.21 app/views/application/edit.js.erb
rich_table_component-0.0.18 app/views/application/edit.js.erb
rich_table_component-0.0.17 app/views/application/edit.js.erb
rich_table_component-0.0.16 app/views/application/edit.js.erb
rich_table_component-0.0.15 app/views/application/edit.js.erb
rich_table_component-0.0.14 app/views/application/edit.js.erb
rich_table_component-0.0.13 app/views/application/edit.js.erb
rich_table_component-0.0.10 app/views/application/edit.js.erb
rich_table_component-0.0.9 app/views/application/edit.js.erb
rich_table_component-0.0.8 app/views/application/edit.js.erb
rich_table_component-0.0.7 app/views/application/edit.js.erb