Sha256: ea719e0f7c2fb13985a54ed805e41616c53f4a61e184128abc66c39de6d2c31f
Contents?: true
Size: 923 Bytes
Versions: 2
Compression:
Stored size: 923 Bytes
Contents
$('.modal, .modal-backdrop').remove(); $('.cke_skin_kama').remove(); <% params[:remote] = true if params[:remote].nil? %> <% params[:next_remote] = true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rich_table_component-0.0.6 | app/views/application/edit.js.erb |
rich_table_component-0.0.5 | app/views/application/edit.js.erb |