caboose-cms 0.2.85 → 0.2.86

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGYxODhjNTkxNzJjNGYzYTFhZmIwNGZjMTdhOTgwYmUxMDhjOWU4Zg==
4
+ ZjcyMDc0ODUzNzNmYWYxY2MzMjk1NjA1NDQzY2EyYTc4YjQyN2Q1OA==
5
5
  data.tar.gz: !binary |-
6
- MjFmYzFhZDVkMThlNTU5ODA4ZmI1NzNlYzRmYjRiOTVjNGU4ZjdhOA==
6
+ MTcyYTdmMjM2YjkzZWVhOWFlMWU3MjJkMWFiOTg5NzA3ZGY5YmM0Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmQ4ZWFhNTc1MjI2MDc1MjM2ZGQwNzBhYmZhMjVjNjEyNzNmMjJmNDk4YTlj
10
- MjE1ODM1NWM3MTM4ZWQ2YTVjYTlkNTUyNWYyYTA1YjdlOTU3N2M3M2U2MjNm
11
- NDk5OGJkYTNkNWE1Y2JkYmMxMTAyYmZhNmFhZDhhODg4ODkxODU=
9
+ N2Q4MzI1YmJjZDdlNzNmNGU4NmUwMzNjNjcwNTI2YzVlM2MyMGVhYTBhOTQ1
10
+ M2EzYzQ2YWJmYmZhYjA0YzkwYThmNmI3MDQ4Y2MxOWVjNjNmN2IyNWI5ZDA0
11
+ MzM0MzYzNmEyYWI0NjQzZDEzZmJjZjhlN2E2NDlhYjkyZGFkYzE=
12
12
  data.tar.gz: !binary |-
13
- MmY0ODM1MzQ2NmJkZmQ5YzZlZGEyZjMxM2IzMGE4ZmNiYTNlNzYwMDcwNDc3
14
- ZTQxZDhlNjAwNDg5MmUwNjFlMDM3OTk3ZTI2NDcyYjE2MzJhODExMmY5ODgw
15
- ZWQ4ZWJiOGUzMDlhNDBiZmM3YzVmM2NiYTkzMjg4NjdiMmUxZDQ=
13
+ MDI3MjFiYjFkNmMwN2IyMTNkZmNiMjhmMTI3ZjJkZjI0NDRjNjVlZGFiNGVi
14
+ ZDgzZmU3YzA2MWVkMGFiNGFhNDRhNzZlMjJiYjUwYzk1ZjQ1ZDhjMzgzZGM3
15
+ ZDk2MGQ3NTQ0MTlmMTUwZDhjMGNjZTMwMDQ4MjExOTZjMDdiYzg=
@@ -42,12 +42,31 @@ CabooseModal.prototype = {
42
42
  };
43
43
 
44
44
  $(document).ready(function() {
45
- $('#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 });
46
- $('#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 });
47
- $('#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 });
45
+ caboose_modal('caboose_login');
46
+ caboose_modal('caboose_register');
47
+ caboose_modal('caboose_station');
48
+ //$('#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 });
49
+ //$('#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 });
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 });
48
51
  });
49
52
 
50
- function fix_colorbox() {
53
+ function caboose_modal(el)
54
+ {
55
+ $('#'+el).colorbox({
56
+ iframe: true,
57
+ initialWidth: 400,
58
+ initialHeight: 200,
59
+ innerWidth: 400,
60
+ innerHeight: 200,
61
+ scrolling: false,
62
+ transition: 'fade',
63
+ closeButton: false,
64
+ onComplete: caboose_fix_colorbox,
65
+ opacity: 0.50
66
+ });
67
+ }
68
+
69
+ function caboose_fix_colorbox() {
51
70
  var padding = 21; // 21 is default
52
71
  $("#cboxTopLeft" ).css('background', '#111');
53
72
  $("#cboxTopRight" ).css('background', '#111');
@@ -57,11 +76,5 @@ function fix_colorbox() {
57
76
  $("#cboxMiddleRight" ).css('background', '#111');
58
77
  $("#cboxTopCenter" ).css('background', '#111');
59
78
  $("#cboxBottomCenter" ).css('background', '#111');
60
- $("#cboxClose" ).hide();
61
-
62
- //var p = (padding-21)*2;
63
- //$("#cboxWrapper" ).css('padding', '0 ' + p + ' ' + p + ' 0');
64
- //$('#cboxLoadedContent').css('margin-bottom', 0);
65
- //h = $('#cboxLoadedContent').height();
66
- //$('#cboxLoadedContent').css('height', ''+(h+28)+'px');
79
+ $("#cboxClose" ).hide();
67
80
  }
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.2.85'
2
+ VERSION = '0.2.86'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.85
4
+ version: 0.2.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-19 00:00:00.000000000 Z
11
+ date: 2013-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails