enjoy_cms 0.3.6.1 → 0.3.6.2

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82620bfd6adcea8c494c4f9f59c0efdc7f4124af
4
- data.tar.gz: f6da7d4a0aa53f3be6b26e7652cdc6aca7d952a9
3
+ metadata.gz: c158c7ee68ca2a611f66332947e0139f9b61b9bd
4
+ data.tar.gz: 3bdb3f23ee1119a132168dfa34a6bac5b20308e9
5
5
  SHA512:
6
- metadata.gz: 4144156323c922c6c23bd4378067b1cc2b55ee8f0a3afcb637a7dddddb73be53fd166e802bccc5f7a3caac3e92a9694e1016597b675250ec37d1fbcc87077fdb
7
- data.tar.gz: 83721e6091410646e93948271694bca0dccc091c6c5c1b4de2bdf49a5f9cbc2695c36f35fee2ea112a567a80fe15307204592ee6a031d5b8eb75e01b6ac0abbf
6
+ metadata.gz: 96f31a367452269b83a3ed89a43ffcba7a8ad283c4480ca3707d59c2072d22abfabb7259b65f48a4ec109545ec7d117380368f38aac9fec49df4676b294061d2
7
+ data.tar.gz: ecf0efcd23fd851673fe725ddcdef0146a011483ddb1fce4602fef41a0a7f571795d45e2fb280cabff4a30c245e3eeaa650b0c11584ba7cad5407e21632953b1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enjoy_cms (0.3.6.1)
4
+ enjoy_cms (0.3.6.2)
5
5
  ack_rails_admin_jcrop
6
6
  addressable
7
7
  ckeditor
@@ -1,4 +1,4 @@
1
- = simple_form_for @contact_message, url: enjoy_contacts_path do |f|
1
+ = simple_form_for @contact_message, url: enjoy_contacts_path, html: {data: {remote: true }} do |f|
2
2
  = f.input :name
3
3
  = f.input :email
4
4
  = f.input :phone
@@ -81,6 +81,7 @@ ru:
81
81
  image: Картинка
82
82
  hidden: Скрытая
83
83
  menus: Меню
84
+ connectable: Связанный элемент
84
85
  enjoy/contact_message:
85
86
  name: Ваше имя
86
87
  email: Ваш е-мейл
@@ -5,11 +5,13 @@ module Enjoy
5
5
  def index
6
6
  @contact_message = model.new
7
7
  after_initialize
8
+ xhr_checker
8
9
  end
9
10
 
10
11
  def new
11
12
  @contact_message = model.new
12
13
  after_initialize
14
+ xhr_checker
13
15
  end
14
16
 
15
17
  def create
@@ -54,11 +56,13 @@ module Enjoy
54
56
  def redirect_after_done
55
57
  redirect_to :contacts_sent
56
58
  end
57
- def after_initialize
59
+ def xhr_checker
58
60
  if request.xhr?
59
- render partial: form_partial
61
+ render layout: false
60
62
  end
61
63
  end
64
+ def after_initialize
65
+ end
62
66
  def after_create
63
67
  # overrideable hook for updating message
64
68
  end
@@ -1,3 +1,3 @@
1
1
  module Enjoy
2
- VERSION = "0.3.6.1"
2
+ VERSION = "0.3.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6.1
4
+ version: 0.3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev