Sha256: 29a4a79bffc80163d65d63e1da16cdb88e3d755f3c1be2f129e9dc1512cc09f4
Contents?: true
Size: 1.3 KB
Versions: 27
Compression:
Stored size: 1.3 KB
Contents
pageflow.pageType.register('background_image', _.extend({ prepareNextPageTimeout: 0, enhance: function(pageElement, configuration) {}, prepare: function(pageElement, configuration) { }, preload: function(pageElement, configuration) { return pageflow.preload.backgroundImage(pageElement.find('.background_image')); }, activating: function(pageElement, configuration) {}, activated: function(pageElement, configuration) {}, deactivating: function(pageElement, configuration) {}, 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.updateCommonPageCssClasses(pageElement, configuration); pageElement.find('.shadow').css({ opacity: configuration.get('gradient_opacity') / 100 }); }, embeddedEditorViews: function() { return { '.background_image': { view: pageflow.BackgroundImageEmbeddedView, options: {propertyName: 'background_image_id'} } }; } }, pageflow.commonPageCssClasses));
Version data entries
27 entries across 27 versions & 1 rubygems