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

Version Path
spud_cms-0.8.2 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.8.1 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.8.0 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.7.2 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.7.1 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.7.0 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.4.8 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.4.7 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.4.6 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.4.5 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.4.4 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.4.3 app/assets/javascripts/spud/admin/cms/application.js
spud_cms-0.4.0 app/assets/javascripts/spud/admin/cms/application.js