Sha256: eddf2a5c34d4bb3f389a7bfd262e8357a88a45f985498e4e33ba56154fb92ae4

Contents?: true

Size: 676 Bytes

Versions: 8

Compression:

Stored size: 676 Bytes

Contents

(function () {
  'use strict';

  jQuery(function() {

    $('.card-actions').on('click', 'a, button', function(evt) {
      evt.preventDefault();

      if ($(this).hasClass('btn-close')) {
        $(this).parent().parent().parent().fadeOut();
      }

      else if ($(this).hasClass('btn-minimize')) {
        var panelIconOpened = 'icon-arrow-up',
            panelIconClosed = 'icon-arrow-down';

        if ($(this).hasClass('collapsed')) {
          $('i', $(this)).removeClass(panelIconOpened).addClass(panelIconClosed);
        }

        else {
          $('i', $(this)).removeClass(panelIconClosed).addClass(panelIconOpened);
        }
      }
    });

  });
}());

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 app/themes/default/assets/javascripts/default/common/cards.js
archangel-0.0.8 app/themes/default/assets/javascripts/default/common/cards.js
archangel-0.0.7 app/themes/default/assets/javascripts/default/common/cards.js
archangel-0.0.6 app/themes/default/assets/javascripts/default/common/cards.js
archangel-0.0.5 app/themes/default/assets/javascripts/default/common/cards.js
archangel-0.0.4 app/themes/default/assets/javascripts/default/common/cards.js
archangel-0.0.3 app/themes/default/assets/javascripts/default/common/cards.js
archangel-0.0.2 app/themes/default/assets/javascripts/default/common/cards.js