Sha256: 78e0892fa39677e87e8a728012b4ee159d034e99363e70a1949029c1ca9f7621

Contents?: true

Size: 625 Bytes

Versions: 11

Compression:

Stored size: 625 Bytes

Contents

$(document).ready(function(){
  // focus first field in an admin form.
  $('form input[type=text]:first').focus();

  init_flash_messages();
});

init_flash_messages = function(){
  $('#flash').css({
    'opacity': 0
    , 'visibility':'visible'
  }).animate({'opacity': '1'}, 550);
  $('#flash_close').live('click', function(e) {
    try {
      $('#flash').animate({
         'opacity': 0,
         'visibility': 'hidden'
      }, 330, function() {
        $('#flash').hide();
      });
    } catch(ex) {
      $('#flash').hide();
    }
    e.preventDefault();
  });
  $('#flash.flash_message').prependTo('#records');
};


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.9 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.8 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.7 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.6 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.5 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.4 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.3 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.2 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.1 app/assets/javascripts/refinery/core.js
refinerycms-core-2.0.0 app/assets/javascripts/refinery/core.js