From 034bfc35c4cbe551c52831de54b53c2f4da8e7e8 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Fri, 3 Jan 2014 11:34:23 +0000 Subject: [PATCH] FIX: Changetracker causing 'saveButton is not a function' error Regression from 1571d35 --- javascript/CMSMain.EditForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/CMSMain.EditForm.js b/javascript/CMSMain.EditForm.js index 60feab42..6e485750 100644 --- a/javascript/CMSMain.EditForm.js +++ b/javascript/CMSMain.EditForm.js @@ -288,9 +288,9 @@ }, onunmatch: function(e) { var saveButton = this.find('button[name=action_save]'); - if(saveButton.data('button')) saveButton('option', 'showingAlternate', false); + if(saveButton.data('button')) saveButton.button('option', 'showingAlternate', false); var publishButton = this.find('button[name=action_publish]'); - if(publishButton.data('button')) publishButton('option', 'showingAlternate', false); + if(publishButton.data('button')) publishButton.button('option', 'showingAlternate', false); this._super(e); } });