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