Sha256: 604da0156bc84a7a998770823ee78d6501a3a1ff32bcedc58e48a121134f24e4

Contents?: true

Size: 1.46 KB

Versions: 48

Compression:

Stored size: 1.46 KB

Contents

$(document).ready(function() {
  $('#caboose_login'    ).colorbox({ iframe: true, initialWidth: 400, initialHeight: 200, innerWidth: 400, innerHeight: 200, scrolling: false, transition: 'fade', closeButton: false, onComplete: fix_colorbox, opacity: 0.50 });
  $('#caboose_register' ).colorbox({ iframe: true, initialWidth: 400, initialHeight: 324, innerWidth: 400, innerHeight: 324, scrolling: false, transition: 'fade', closeButton: false, onComplete: fix_colorbox, opacity: 0.50 });
  $('#caboose_station'  ).colorbox({ iframe: true, initialWidth: 200, initialHeight: 50,  innerWidth: 200, innerHeight:  50, scrolling: false, transition: 'fade', closeButton: false, onComplete: fix_colorbox, opacity: 0.50 });
});

function fix_colorbox() {
  var padding = 21; // 21 is default
  $("#cboxTopLeft"      ).css('background', '#111');
  $("#cboxTopRight"     ).css('background', '#111');
  $("#cboxBottomLeft"   ).css('background', '#111');
  $("#cboxBottomRight"  ).css('background', '#111');
  $("#cboxMiddleLeft"   ).css('background', '#111');
  $("#cboxMiddleRight"  ).css('background', '#111');
  $("#cboxTopCenter"    ).css('background', '#111');
  $("#cboxBottomCenter" ).css('background', '#111');
  $("#cboxClose"        ).hide();
  
  //var p = (padding-21)*2;
  //$("#cboxWrapper"      ).css('padding', '0 ' + p + ' ' + p + ' 0');
  //$('#cboxLoadedContent').css('margin-bottom', 0);
  //h = $('#cboxLoadedContent').height();
  //$('#cboxLoadedContent').css('height', ''+(h+28)+'px'); 
}

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
caboose-store-0.0.10 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.9 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.8 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.7 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.6 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.5 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.4 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.3 app/assets/javascripts/caboose_store/modal_integration.js
caboose-store-0.0.2 app/assets/javascripts/caboose_store/modal_integration.js
caboose-cms-0.2.49 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.48 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.47 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.46 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.45 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.44 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.43 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.42 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.41 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.40 app/assets/javascripts/caboose/modal_integration.js
caboose-cms-0.2.39 app/assets/javascripts/caboose/modal_integration.js