Sha256: 31bc0c57dd5dc36615ecfcc525e92ab069500a1650e9e4397eaf1903bfdbc69b
Contents?: true
Size: 987 Bytes
Versions: 11
Compression:
Stored size: 987 Bytes
Contents
//= require codemirror //= require codemirror/modes/xml //= require codemirror/modes/javascript //= require codemirror/modes/css //= require codemirror/modes/htmlmixed //= require codemirror/modes/htmlembedded // Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function() { // initWysiwym(); initTinyMCE(); $("#spud_page_template_id").bind('change', function() { var $this = $(this); $.get($this.attr("data-source"), { template: $this.val() }, function(data) { $('.formtabs').tabs('destroy'); console.log($("#page_partials_form")) $('textarea.tinymce').each(function() {$(this).tinymce().execCommand('mceRemoveControl',false,this.id)}); $("#page_partials_form").replaceWith(data) initFormTabs(); initTinyMCE(); // initWysiwym(); }, 'text').error(function(jqXHR) { $('<p> Error: ' + jqXHR.responseText + '</p>').dialog(); }); }); });
Version data entries
11 entries across 11 versions & 1 rubygems