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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42d71dd785a8ffb54d16b6ee0687b4605e05d716
4
- data.tar.gz: ae7cbb56e436b46f1fad0edc9163adb53dd75af4
3
+ metadata.gz: 3d2178b8486c9fceedc7da68b3588e0886ccbbd4
4
+ data.tar.gz: db4da82c99d738dbbb25b892a357e2f4526092e8
5
5
  SHA512:
6
- metadata.gz: 4cbe9e6760e11bc6818021ef23a8c974921fadcb6ce7d3f42babe50482c14d444c4755dcd42ab5f8a8e84798f0ab2ecd4f455a68c4a71c72e6c6205da77fb187
7
- data.tar.gz: d3c36cd2094f0c06df40aaeba14b89caa1acd995ec34fa14ff0da6dc0f5e370b280a6d03bfce4343eaa296f34c7175a7fdade3e1b287da6737cf324f7a3f6c02
6
+ metadata.gz: a81a9fc93c30230064dbd794042100ab4367603e5177ad1361534b2543e86bf8223460af626d8e9862a5c6b584276fd498f2a0a6485fbcf662ddad2e12734ad7
7
+ data.tar.gz: 09a3101fa5f966405c1598746913905448614388b59a5de5395e99729697a46935acab231cbe0115ab9b5647d155ddc98a1b4c7ad476dd117c2d15c22a4eb574
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enjoy_cms (0.3.7.3)
4
+ enjoy_cms (0.3.7.4)
5
5
  ack_rails_admin_jcrop
6
6
  addressable
7
7
  ckeditor
@@ -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()
@@ -0,0 +1,2 @@
1
+ #= require enjoy_cms/rails_admin/cms.ui
2
+ #= require enjoy_cms/rails_admin/custom/ui
@@ -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
- field "#{name}_html", opts
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.#{name}_html ||= ""
16
- return self.#{name}_html unless self.#{name}_clear
17
- Rails::Html::FullSanitizer.new.sanitize(self.#{name}_html.strip)
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
@@ -1,3 +1,3 @@
1
1
  module Enjoy
2
- VERSION = "0.3.7.3"
2
+ VERSION = "0.3.7.4"
3
3
  end
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.3
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-16 00:00:00.000000000 Z
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