app/assets/javascripts/pageflow/before_after.js in pageflow-before-after-1.1.0 vs app/assets/javascripts/pageflow/before_after.js in pageflow-before-after-1.2.0

- old
+ new

@@ -58,15 +58,11 @@ }, deactivated: function(pageElement, configuration) {}, update: function(pageElement, configuration) { - - pageElement.find('h2 .tagline').text(configuration.get('tagline') || ''); - pageElement.find('h2 .title').text(configuration.get('title') || ''); - pageElement.find('h2 .subtitle').text(configuration.get('subtitle') || ''); - pageElement.find('p').html(configuration.get('text') || ''); + this.updateDefaultPageContent(pageElement, configuration); pageElement.find('.control_bar_text').text(configuration.get('control_bar_text') || I18n.t('pageflow.public.before_after.start', { locale: pageflow.seed.locale })); @@ -87,6 +83,6 @@ '.before_after': { view: pageflow.beforeAfter.BeforeAfterEmbeddedView } }; } -}, pageflow.commonPageCssClasses, pageflow.infoBox)); +}, pageflow.commonPageCssClasses, pageflow.infoBox, pageflow.defaultPageContent));