comfortable_mexican_sofa 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
@@ -59,9 +59,9 @@ $.CMS = function(){
|
|
59
59
|
|
60
60
|
// Load Page Blocks on layout change
|
61
61
|
load_page_blocks: function(){
|
62
|
-
$('select#
|
62
|
+
$('select#page_layout_id').bind('change.cms', function() {
|
63
63
|
$.ajax({
|
64
|
-
url:
|
64
|
+
url: $(this).data('url'),
|
65
65
|
data: ({
|
66
66
|
layout_id: $(this).val()
|
67
67
|
}),
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<%= form.text_field :slug, :id => 'slug' %>
|
17
17
|
<% end %>
|
18
18
|
<% if (options = Cms::Layout.options_for_select(@site)).present? %>
|
19
|
-
<%= form.select :layout_id, options, {}, 'data-
|
19
|
+
<%= form.select :layout_id, options, {}, 'data-url' => form_blocks_cms_admin_site_page_path(@site, @page.id.to_i), :label => 'Layout' %>
|
20
20
|
<% end %>
|
21
21
|
<% if (options = Cms::Page.options_for_select(@site, @page)).present? %>
|
22
22
|
<%= form.select :parent_id, options %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{comfortable_mexican_sofa}
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
@@ -42,6 +42,7 @@ class CmsAdmin::PagesControllerTest < ActionController::TestCase
|
|
42
42
|
assert_equal cms_layouts(:default), assigns(:page).layout
|
43
43
|
assert_template :new
|
44
44
|
assert_select "form[action=/cms-admin/sites/#{site.id}/pages]"
|
45
|
+
assert_select "select[data-url=/cms-admin/sites/#{site.id}/pages/0/form_blocks]"
|
45
46
|
end
|
46
47
|
|
47
48
|
def test_get_new_with_field_datetime
|
@@ -122,6 +123,7 @@ class CmsAdmin::PagesControllerTest < ActionController::TestCase
|
|
122
123
|
assert assigns(:page)
|
123
124
|
assert_template :edit
|
124
125
|
assert_select "form[action=/cms-admin/sites/#{page.site.id}/pages/#{page.id}]"
|
126
|
+
assert_select "select[data-url=/cms-admin/sites/#{page.site.id}/pages/#{page.id}/form_blocks]"
|
125
127
|
end
|
126
128
|
|
127
129
|
def test_get_edit_failure
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfortable_mexican_sofa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ default_executable:
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
|
-
requirement: &
|
18
|
+
requirement: &70185365145420 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 3.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70185365145420
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: active_link_to
|
29
|
-
requirement: &
|
29
|
+
requirement: &70185365144940 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 1.0.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70185365144940
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: paperclip
|
40
|
-
requirement: &
|
40
|
+
requirement: &70185365144460 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: 2.3.14
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70185365144460
|
49
49
|
description: ''
|
50
50
|
email: oleg@theworkinggroup.ca
|
51
51
|
executables: []
|
@@ -344,7 +344,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
344
344
|
version: '0'
|
345
345
|
segments:
|
346
346
|
- 0
|
347
|
-
hash: -
|
347
|
+
hash: -4262236515429772675
|
348
348
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
349
349
|
none: false
|
350
350
|
requirements:
|