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
|
-
|
|
4
|
+
MDNkYTYwNmRiNjA3ZWUwZTcwMjI2NGIxMzk1MjYyMzYwZTk2YjcwMw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MjQ4NGYxOGUxZTRlMGNhODU0NDZiYTY5NDY0MzUyNzYzZWU3NDdkMg==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZTZlYTU4YTM0MmI2YjFhMTNjZmJkYWYzNDE5MWI5MGVmYjViNWI0OGNmNWZh
|
|
10
|
+
OGI2MGFjMzQ4NjlhOThiODVjNGM4ZjJlZGZkMjc0ZjA4YzE1OTc3YzcyZDQz
|
|
11
|
+
NTNkNjY1NmViMTY0MTUxNjkwZmUzYjI0MTQ4YmQzYzFlYWVmMmM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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>
|
data/lib/caboose/version.rb
CHANGED