Sha256: c458797bdd6775098947bfe94b7f1bd68fb44546aca7d123378bd496cc32d4cc
Contents?: true
Size: 842 Bytes
Versions: 23
Compression:
Stored size: 842 Bytes
Contents
$('.modal, .modal-backdrop').remove(); $('.cke_skin_kama').remove(); <% params[:remote] = true %> <% params[:form_partial] ||= "form" %> <% params[:form_title] ||= params[:modal_title].presence || "#{t('editing')} #{t(controller_name.singularize)}" %> var $modal = $('<%= j(render "modal_show", 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
23 entries across 23 versions & 1 rubygems