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