Chris@0: /** Chris@0: * DO NOT EDIT THIS FILE. Chris@0: * See the following change record for more information, Chris@0: * https://www.drupal.org/node/2815083 Chris@0: * @preserve Chris@0: **/ Chris@0: Chris@0: (function (Backbone, Drupal) { Chris@0: Drupal.toolbar.ToolbarModel = Backbone.Model.extend({ Chris@0: defaults: { Chris@0: activeTab: null, Chris@0: Chris@0: activeTray: null, Chris@0: Chris@0: isOriented: false, Chris@0: Chris@0: isFixed: false, Chris@0: Chris@0: areSubtreesLoaded: false, Chris@0: Chris@0: isViewportOverflowConstrained: false, Chris@0: Chris@0: orientation: 'horizontal', Chris@0: Chris@0: locked: false, Chris@0: Chris@0: isTrayToggleVisible: true, Chris@0: Chris@0: height: null, Chris@0: Chris@0: offsets: { Chris@0: top: 0, Chris@0: right: 0, Chris@0: bottom: 0, Chris@0: left: 0 Chris@0: } Chris@0: }, Chris@0: Chris@0: validate: function validate(attributes, options) { Chris@0: if (attributes.orientation === 'horizontal' && this.get('locked') && !options.override) { Chris@0: return Drupal.t('The toolbar cannot be set to a horizontal orientation when it is locked.'); Chris@0: } Chris@0: } Chris@0: }); Chris@0: })(Backbone, Drupal);