Projet

Général

Profil

Révision e5e66f93

Ajouté par Assos Assos il y a presque 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/panelizer/js/panelizer-vertical-tabs.js
1 1
/**
2 2
 * @file
3
 * This javascript provides Vertical Tabs integration with Panelizer so
4
 * that the tab displays the correct value of the field within the tab.
3
 * This javascript provides Vertical Tabs integration with Panelizer so that the
4
 * tab displays the correct value of the field within the tab.
5 5
 */
6

  
6 7
(function ($) {
8
  'use strict';
7 9

  
8 10
Drupal.behaviors.panelizerFieldsetSummary = {
9 11
  attach: function (context) {
10 12
    $('fieldset.panelizer-entity-options', context).drupalSetSummary(function (context) {
11 13
      var val = $('select', context).val();
12
      if (val == 0) {
14
      if (val === 0) {
13 15
        return Drupal.t('Not panelized');
14 16
      }
15
      return Drupal.t('Use panel @name',
17
      return Drupal.t('Use display @name',
16 18
        { '@name' : $('option[value="' + $('select', context).val() + '"]', context).html() });
17 19
    });
18 20
  }

Formats disponibles : Unified diff