enjoy_cms 0.3.7.3 → 0.3.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/enjoy_cms/rails_admin/cms.ui.coffee +6 -0
- data/app/assets/javascripts/enjoy_cms/rails_admin/custom/ui.coffee +0 -0
- data/app/assets/javascripts/rails_admin/custom/ui.coffee +2 -0
- data/app/models/concerns/enjoy/html_field.rb +11 -4
- data/lib/enjoy/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d2178b8486c9fceedc7da68b3588e0886ccbbd4
|
4
|
+
data.tar.gz: db4da82c99d738dbbb25b892a357e2f4526092e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a81a9fc93c30230064dbd794042100ab4367603e5177ad1361534b2543e86bf8223460af626d8e9862a5c6b584276fd498f2a0a6485fbcf662ddad2e12734ad7
|
7
|
+
data.tar.gz: 09a3101fa5f966405c1598746913905448614388b59a5de5395e99729697a46935acab231cbe0115ab9b5647d155ddc98a1b4c7ad476dd117c2d15c22a4eb574
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,6 @@
|
|
1
|
+
window.enjoy_cms_multiselect_dblclick = (selector)->
|
2
|
+
$(document).delegate selector + ' .ra-multiselect-left select option', 'dblclick', (e)->
|
3
|
+
$(e.currentTarget).closest('.ra-multiselect').find('.ra-multiselect-center .ra-multiselect-item-add').click()
|
4
|
+
|
5
|
+
$(document).delegate selector + ' .ra-multiselect-right select option', 'dblclick', (e)->
|
6
|
+
$(e.currentTarget).closest('.ra-multiselect').find('.ra-multiselect-center .ra-multiselect-item-remove').click()
|
File without changes
|
@@ -7,14 +7,21 @@ if Enjoy.mongoid?
|
|
7
7
|
clear_by_default = opts.delete(:clear_by_default)
|
8
8
|
clear_by_default = false unless clear_by_default == true
|
9
9
|
|
10
|
-
|
10
|
+
_html_field_name = "#{name}_html"
|
11
|
+
|
12
|
+
field _html_field_name, opts
|
11
13
|
field "#{name}_clear", type: Boolean, default: clear_by_default, localize: opts[:localize]
|
12
14
|
|
13
15
|
class_eval <<-EVAL
|
14
16
|
def #{name}
|
15
|
-
self.#{
|
16
|
-
return self.#{
|
17
|
-
|
17
|
+
self.#{_html_field_name} ||= ""
|
18
|
+
return self.#{_html_field_name} unless self.#{name}_clear
|
19
|
+
clean_#{name}
|
20
|
+
end
|
21
|
+
|
22
|
+
def clean_#{name}
|
23
|
+
self.#{_html_field_name} ||= ""
|
24
|
+
Rails::Html::FullSanitizer.new.sanitize(self.#{_html_field_name}.strip)
|
18
25
|
end
|
19
26
|
EVAL
|
20
27
|
end
|
data/lib/enjoy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enjoy_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.7.
|
4
|
+
version: 0.3.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kiseliev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -408,8 +408,11 @@ files:
|
|
408
408
|
- app/assets/javascripts/enjoy_cms/contacts.coffee
|
409
409
|
- app/assets/javascripts/enjoy_cms/flash.coffee
|
410
410
|
- app/assets/javascripts/enjoy_cms/map.coffee
|
411
|
+
- app/assets/javascripts/enjoy_cms/rails_admin/cms.ui.coffee
|
412
|
+
- app/assets/javascripts/enjoy_cms/rails_admin/custom/ui.coffee
|
411
413
|
- app/assets/javascripts/head.load.js
|
412
414
|
- app/assets/javascripts/jquery.placeholder.js
|
415
|
+
- app/assets/javascripts/rails_admin/custom/ui.coffee
|
413
416
|
- app/assets/stylesheets/enjoy_cms.sass
|
414
417
|
- app/assets/stylesheets/enjoy_cms/flash.sass
|
415
418
|
- app/assets/stylesheets/enjoy_cms/normalize.scss
|