app/assets/javascripts/admin/cms/pages.js in tb_cms-1.3.5 vs app/assets/javascripts/admin/cms/pages.js in tb_cms-1.3.6
- old
+ new
@@ -1,13 +1,12 @@
-spud.admin.cms.pages = {};
+tb.cms.pages = {};
(function(){
-spud.admin.cms.pages = {
+tb.cms.pages = {
edit: function(){
- spud.admin.editor.init({selector: '.page-partial-content-editor', width: $("#page_partials_form").width()});
- spud.admin.cms.pages.initFormTabs();
+ tb.cms.pages.initFormTabs();
$(".btn-preview").on('click', clickedPreviewButton);
$("#spud_page_layout").on('change', changedLayoutSelection);
}
};
@@ -35,19 +34,19 @@
$.get($this.attr("data-source"), { template: $this.val() }, function(data) {
spud.admin.editor.unload();
$("#page_partials_form").replaceWith(data);
- spud.admin.cms.pages.initFormTabs();
+ tb.cms.pages.initFormTabs();
- spud.admin.editor.init({selector: '.page-partial-content-editor', width: $("#page_partials_form").width()});
+ tb.editor.init();
}, 'text').error(function(jqXHR) {
alert("Error: " + jqXHR.responseText);
});
};
-spud.admin.cms.pages.initFormTabs = function(){
+tb.cms.pages.initFormTabs = function(){
var tabNames = [];
$('.formtabs .formtab').each(function(tabind) {
if(tabind === 0){
$(this).addClass('active');