Mercurial > hg > isophonics-drupal-site
view core/modules/toolbar/js/models/ToolbarModel.js @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
/** * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/2815083 * @preserve **/ (function (Backbone, Drupal) { Drupal.toolbar.ToolbarModel = Backbone.Model.extend({ defaults: { activeTab: null, activeTray: null, isOriented: false, isFixed: false, areSubtreesLoaded: false, isViewportOverflowConstrained: false, orientation: 'horizontal', locked: false, isTrayToggleVisible: true, height: null, offsets: { top: 0, right: 0, bottom: 0, left: 0 } }, validate: function validate(attributes, options) { if (attributes.orientation === 'horizontal' && this.get('locked') && !options.override) { return Drupal.t('The toolbar cannot be set to a horizontal orientation when it is locked.'); } } }); })(Backbone, Drupal);