Sha256: 46e727b5b71f99dadc458f7f77abdc812f4c06967b87b528f121a8f846767624

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

//= require jquery
//= require jquery_ujs

function aureus(options) {
  window.__aureus = { options: jQuery.extend({}, options || {}) };
  _aureus_remove_messages_after(window.__aureus.options.remove_messages_after);
  _aureus_dropdown();
}

function _aureus_remove_messages_after(seconds) {
  setTimeout(function() {
    $('.aureus-messages p').fadeOut();
  }, seconds*1000);
}

function _aureus_dropdown() {
  $('.dropdown-accessor').click(function(){
    $(this).parent().toggleClass('active');
  });
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aureus-3.0.5 app/assets/javascripts/aureus/index.js
aureus-3.0.4 app/assets/javascripts/aureus/index.js
aureus-3.0.3 app/assets/javascripts/aureus/index.js
aureus-3.0.2 app/assets/javascripts/aureus/index.js