Sha256: c2ac8456be6f98785957604fe9614e86d3b12d1ccfc20fcab3d3de084d5bff1f
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 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_layout").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(); }, '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.9.0 | app/assets/javascripts/spud/admin/cms/application.js |