caboose-cms 0.3.25 → 0.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmIzZmU0ZTNhYTRhNmQ5ODljZTc0ODk1NTk0MmQ0NTQ3MGRkNzdhYw==
4
+ MDNkYTYwNmRiNjA3ZWUwZTcwMjI2NGIxMzk1MjYyMzYwZTk2YjcwMw==
5
5
  data.tar.gz: !binary |-
6
- ZDNmYjZlNGIwNzdkNjJiOWQ1MDc0MWE3MTJiZTM5NTFhM2QzZGE5OA==
6
+ MjQ4NGYxOGUxZTRlMGNhODU0NDZiYTY5NDY0MzUyNzYzZWU3NDdkMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Zjg0ODIyNjAxNzFmZGZmY2E4YTg0YTJiMmQxMWNhZWYxMTdkOTNhNTkyY2Zh
10
- NDA5N2FhOTRmMDA4ZmJmNjZjZDM5YzE3M2U1YTk0MGRlNDEyMDI5Yjg0OWNi
11
- YzFlMGQ1OGQ0Mjc2OTRmNGM1Yjc3Mjg5NmNkN2Q2NWM5MWM4OWU=
9
+ ZTZlYTU4YTM0MmI2YjFhMTNjZmJkYWYzNDE5MWI5MGVmYjViNWI0OGNmNWZh
10
+ OGI2MGFjMzQ4NjlhOThiODVjNGM4ZjJlZGZkMjc0ZjA4YzE1OTc3YzcyZDQz
11
+ NTNkNjY1NmViMTY0MTUxNjkwZmUzYjI0MTQ4YmQzYzFlYWVmMmM=
12
12
  data.tar.gz: !binary |-
13
- MTgwMjUzZWZhYWM5NGZlMzljZGQwNDQzNjBkNTNjZGNmYjc1MDFjYmIzMGQ5
14
- YzRmMDQwNzIxMjM0MjUwZmEyZWE3MWZhMzY4NGFiMzA5ZTU3YWE4NGIxNjYx
15
- MzAwYTNiN2FmMzE5Y2E0ZDFhNGMzYzZjZDA2NGY0MGRhYTgxZGE=
13
+ OTA0ZmM4Nzc0OGE0ZjJkNmQxNjY1NTVjNGVhNjc2OTY0NDVjNTE2Y2U0YWFh
14
+ ZTA2ODA2Y2FmZmVhNDc0ZTM1ZmUwMDI5MTZjNmM1OTM0YjUzMmM5NzZkYmE4
15
+ MGM4ZWUwYjgwNjVhMjk5NzgyZDgwYTRkOGJlMmJjYmZjNjRmNzc=
@@ -42,18 +42,15 @@ CabooseModal.prototype = {
42
42
  };
43
43
 
44
44
  $(document).ready(function() {
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 });
51
- $('a.caboose_modal').each(function(i, a) { caboose_modal(a); });
45
+ //caboose_modal('caboose_login');
46
+ //caboose_modal('caboose_register');
47
+ //caboose_modal('caboose_station');
48
+ $('a.caboose_modal').each(function(i, a) { caboose_modal($(a)); });
52
49
  });
53
50
 
54
51
  function caboose_modal(el)
55
52
  {
56
- $(typeof(el) == 'String' ? '#'+el : el).colorbox({
53
+ var options = {
57
54
  iframe: true,
58
55
  initialWidth: 400,
59
56
  initialHeight: 200,
@@ -64,7 +61,11 @@ function caboose_modal(el)
64
61
  closeButton: false,
65
62
  onComplete: caboose_fix_colorbox,
66
63
  opacity: 0.50
67
- });
64
+ };
65
+ if (typeof(el) == 'string')
66
+ $('#'+el).colorbox(options);
67
+ else
68
+ el.colorbox(options);
68
69
  }
69
70
 
70
71
  function caboose_modal_url(url)
@@ -1,7 +1,7 @@
1
1
  <%
2
2
  if (@user.nil? || @user == Caboose::User.logged_out_user)
3
- %><a href='/login?return_url=<%= request.fullpath %>' id='caboose_login'><span>Login</span></a><%
3
+ %><a href='/login?return_url=<%= request.fullpath %>' id='caboose_login' class='caboose_modal'><span>Login</span></a><%
4
4
  else
5
- %><a href='/station?page_id=<%= @page.id %>' id='caboose_station'><span>Control Panel</span></a><%
5
+ %><a href='/station?page_id=<%= @page.id %>' id='caboose_station' class='caboose_modal'><span>Control Panel</span></a><%
6
6
  end
7
7
  %>
@@ -16,7 +16,7 @@
16
16
  <div class='caboose_logo'></div>
17
17
  <ul>
18
18
  <li class='back' ><a href='/'><span><< Back to Site</span></a></li>
19
- <li class='cpanel' ><a href='/station' id='caboose_station'><span>Menu</span></a></li>
19
+ <li class='cpanel' ><a href='/station' id='caboose_station' class='caboose_modal'><span>Menu</span></a></li>
20
20
  </ul>
21
21
  </div>
22
22
  </div>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.3.25'
2
+ VERSION = '0.3.26'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.25
4
+ version: 0.3.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry