effective_ckeditor 1.2.0 → 1.2.1

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: b9110df18bd0e388402625ef0b1407f5cf39cbad
4
- data.tar.gz: 40ffba340070d21b14edf46b0b8f322e2ddd55ae
3
+ metadata.gz: afdaf67da4a0133ddc16b9ed90e3f6cb0902e085
4
+ data.tar.gz: 5681db278302c87c9f87cd2d5bf2184bff0c6073
5
5
  SHA512:
6
- metadata.gz: 279c86982b6c5cd79dffec12acf8271604ee005458e04cfe5ce3d456176844ccec5b2af3741244de63c9e7660299744ee83093fe6b8295dfb586b4672b83bbb8
7
- data.tar.gz: 64d4b67c945d1608e6b920a0c8f356a4ece3be2ec769612cf083dac412e44c19ead40fd79999a09da3618d888482016e49888298e196bcedec85c5573bb90ce4
6
+ metadata.gz: f467c4af2104d3534d6cfd6b6744afe34fd4cd4383d89926f7d6073d16f828b8c42477fce4b5a2f4d17496f49bdff0e992a8ffe9f1c2da3d4990a3b73caca2f6
7
+ data.tar.gz: e90b81c80223c11ba18f2353ea10297de315707167cd119f227f1e47ccf89e48e297abb7ddde10e7d85c243fceb5eb4345b8e136ed7e06f401a20217334505c7
data/README.md CHANGED
@@ -12,7 +12,7 @@ Please see effective_regions (https://github.com/code-and-effect/effective_regio
12
12
 
13
13
  ## CKEditor
14
14
 
15
- This gem packages only the javascript parts of CKEditor and adds one exclusive plugin, effective_regions
15
+ This gem packages only the javascript parts of CKEditor and some exclusive effective_* plugins
16
16
 
17
17
  ## License
18
18
 
@@ -196,7 +196,9 @@
196
196
  # Rails seems to disregard new items set to the new Date.now() values anyhow
197
197
  # Put all deleted items after the .actions div just to be tidy
198
198
  markDestroyed: (item) ->
199
- item.hide().addClass('destroyed').find("input[name$='[_destroy]']").val(1)
199
+ item.hide().addClass('destroyed')
200
+ item.find('li').addClass('destroyed')
201
+ item.find("input[name$='[_destroy]']").val(1)
200
202
  @menu.children('.actions').after(item.remove())
201
203
 
202
204
  # This method is called with a Hash value
@@ -244,6 +246,9 @@
244
246
  # This retVal has to account for multiple effective-menus on one page
245
247
  retval[@menu.data('effective-menu-id')] = items
246
248
 
249
+ saveComplete: ->
250
+ @menu.find('.destroyed').remove()
251
+
247
252
  assignLftRgt: (parent, lft) ->
248
253
  rgt = lft + 1
249
254
 
@@ -56,6 +56,7 @@ SaveAll = {
56
56
  data: { effective_regions: regionData, effective_menus: menuData }
57
57
  async: false
58
58
  complete: (data) ->
59
+ $('.effective-menu').effectiveMenuEditor('saveComplete')
59
60
  if data.responseText == 'refresh'
60
61
  location.reload(true)
61
62
  }
@@ -1,3 +1,3 @@
1
1
  module EffectiveCkeditor
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails