Sha256: ef1e66dc1e8a7351fa3b30e4856c035fe94e71523db463c12e630562f9829dc7
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 Bytes
Contents
//= require codemirror //= require codemirror/modes/xml //= require codemirror/modes/javascript //= require codemirror/modes/css //= require codemirror/modes/htmlmixed //= require codemirror/modes/htmlembedded //= require spud/admin/cms/menu_items // 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'); $('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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spud_cms-0.8.17 | app/assets/javascripts/spud/admin/cms/application.js |