caboose-cms 0.5.177 → 0.5.178
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
|
-
|
4
|
+
NmYwMjNkNTg3MzI5ZGU1YTA2NTNiODRkNjQ4OTg1ZDdiMzEwNmFjNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDlhMWQ0YWEyNDljZjI5YzY4NGQxYjg2ZjQyYjY0ZTJjMTE3NTM2NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmRhOTQyYWI0NWNmM2MwMGI3OGY2YmQxOTAwY2ZlZTYyM2Q2Y2RjMzIwM2Rm
|
10
|
+
NzQ0Nzc0M2QxYTQwMmU2OTgzODliZjUwZGExMjU5YzZmNWVhYWM3OTliYWYw
|
11
|
+
ZTQ0M2RjNjU1Y2ZjZGM0N2MyZTQ5ZWQ4ODhiMzMxMTRiM2IwODI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDRkZTE1MzAxNTA4NDViY2ZhMmQxZDRiMWMwODQ2MTFmMzk3MTQ3MWVkMzBj
|
14
|
+
NWJhODAyOTRkZWI4MjBkMjlmNmY4ZTgwODA3NWY4ZDhiZjZlOGQyNDQ2ODA1
|
15
|
+
MTg3M2IzMWIzYWUwM2NjNTFhYTVmOGFjYjIzOTY1NGZiOWE5ZGQ=
|
@@ -40,6 +40,7 @@ module Caboose
|
|
40
40
|
when 'site_id' then d.site_id = value
|
41
41
|
when 'domain' then d.domain = value
|
42
42
|
when 'under_construction' then d.under_construction = value
|
43
|
+
when 'forward_to_primary' then d.forward_to_primary = value
|
43
44
|
when 'primary' then
|
44
45
|
d.primary = value
|
45
46
|
Domain.where(:site_id => params[:site_id]).all.each do |d2|
|
@@ -22,6 +22,7 @@ user_ids = [] if user_ids.nil?
|
|
22
22
|
<th>Domain</th>
|
23
23
|
<th>Primary</th>
|
24
24
|
<th>Under Construction</th>
|
25
|
+
<th>Forward to Primary</th>
|
25
26
|
<th>Delete</th>
|
26
27
|
</tr>
|
27
28
|
<% @site.domains.order(:id).all.each do |d| %>
|
@@ -29,6 +30,7 @@ user_ids = [] if user_ids.nil?
|
|
29
30
|
<td><%= d.domain %></td>
|
30
31
|
<td align='center'><input type='radio' name='primary_domain' <%= d.primary? ? "checked='true'" : '' %> onclick="set_primary_domain(<%= s.id %>, <%= d.id %>);" /></td>
|
31
32
|
<td align='center'><input type='checkbox' name='under_construction_<%= d.id %>' <%= d.under_construction ? "checked='true'" : '' %> onclick="set_under_construction(<%= s.id %>, <%= d.id %>, $(this).prop('checked'));" /></td>
|
33
|
+
<td align='center'><input type='checkbox' name='forward_to_primary_<%= d.id %>' <%= d.forward_to_primary ? "checked='true'" : '' %> onclick="set_forward_to_primary(<%= s.id %>, <%= d.id %>, $(this).prop('checked'));" /></td>
|
32
34
|
<td align='center'><input type='button' value='Delete' onclick="delete_domain(<%= @site.id %>, <%= d.id %>);" /></td>
|
33
35
|
</tr>
|
34
36
|
<% end %>
|
@@ -83,6 +85,15 @@ function set_under_construction(site_id, domain_id, checked)
|
|
83
85
|
});
|
84
86
|
}
|
85
87
|
|
88
|
+
function set_forward_to_primary(site_id, domain_id, checked)
|
89
|
+
{
|
90
|
+
$.ajax({
|
91
|
+
url: '/admin/sites/' + site_id + '/domains/' + domain_id,
|
92
|
+
type: 'put',
|
93
|
+
data: { forward_to_primary: checked ? 1 : 0 }
|
94
|
+
});
|
95
|
+
}
|
96
|
+
|
86
97
|
function add_site_membership(site_id, user_id, role)
|
87
98
|
{
|
88
99
|
$.ajax({
|
data/lib/caboose/version.rb
CHANGED