Sha256: e230b8b5873c3d808f12e5fb3f89e11d47585830a5359b91633ad6583c24d7e3
Contents?: true
Size: 817 Bytes
Versions: 13
Compression:
Stored size: 817 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. $(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'); $("#page_partials_form").replaceWith(data) initFormTabs(); initTinyMCE(); // initWysiwym(); }, 'text').error(function(jqXHR) { $('<p> Error: ' + jqXHR.responseText + '</p>').dialog(); }); }); });
Version data entries
13 entries across 13 versions & 1 rubygems