Sha256: 55939dd0fb74368a1196e921fface50d9dbdea947c17d956628bcab212bd0ba8

Contents?: true

Size: 551 Bytes

Versions: 13

Compression:

Stored size: 551 Bytes

Contents

define([
  '../utils'
], function (Utils) {
  function SelectionCSS () { }

  SelectionCSS.prototype.render = function (decorated) {
    var $selection = decorated.call(this);

    var selectionCssClass = this.options.get('selectionCssClass') || '';

    if (selectionCssClass.indexOf(':all:') !== -1) {
      selectionCssClass = selectionCssClass.replace(':all:', '');

      Utils.copyNonInternalCssClasses($selection[0], this.$element[0]);
    }

    $selection.addClass(selectionCssClass);

    return $selection;
  };

  return SelectionCSS;
});

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
card-mod-bootstrap-0.18.1 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.18.0 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.17.0 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.16.0 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.6 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.5 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.4 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.3 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.1.2 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.2.pre1 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.1.1 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.1 vendor/select2/src/js/select2/selection/selectionCss.js
card-mod-bootstrap-0.15.0 vendor/select2/src/js/select2/selection/selectionCss.js