tenon 1.0.9 → 1.0.10

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: 369fe222b4d39f614783304c9fd028c9904725cf
4
- data.tar.gz: 9f19f960370d70a89fee8416e981c1174e90b11d
3
+ metadata.gz: 48fb6179ca0d169c509bdb474451aafb9867f4e2
4
+ data.tar.gz: 347a5e77d1fa93343900a072d17c9fd0a016d76c
5
5
  SHA512:
6
- metadata.gz: 706543fb1b96546c2e7a1c3ad728cce2fa166e997830e8c1f9b559dd053ca9af7c56e97f6f2431707e2471003278b9ed4761bd2a7bf03736a42e5820fe1557af
7
- data.tar.gz: 92683d22c2b17aa0daeff1482eb11d9e0d714d63740c972861d32563a7b7b84af22ada7a3d3fb1a52396700a6295681d79138f763c59970538ab476be14e25f7
6
+ metadata.gz: 5cb957ff891e6bd3ea7b36402383b038bc01faa9a6c3e218170e3d65145c9f89863bfdb375fa9146137f62518b73fcb2257098bbf91d6210fa93cf3d71e24ea7
7
+ data.tar.gz: 48597375b5d3286153249e116e15c8ba863c873979789564772e22fa74f5bcd04736b7c9c66b947d73b654683c0dab7a12978568736a90f883e605eb8364e5e3
@@ -24,7 +24,7 @@ class Tenon.features.tenonContent.ImageControls
24
24
  $('.tooltip').remove()
25
25
 
26
26
  _removeControls: =>
27
- $('body > .image-controls').remove()
27
+ $('body > .image-controls, body > .link-form').remove()
28
28
  delete Tenon.activeImageControls
29
29
 
30
30
  _buildControls: (e) =>
@@ -1,6 +1,6 @@
1
1
  class Tenon.features.tenonContent.ImageLinks
2
2
  constructor: (@$container) ->
3
- $(document).on('click', '.column-image .add-link, .wrapped-image .add-link', @buildLinkForm)
3
+ $(document).on('click', '.image-controls .add-link', @buildLinkForm)
4
4
 
5
5
  buildLinkForm: (e) =>
6
6
  @$button = $(e.currentTarget)
@@ -41,7 +41,9 @@ class Tenon.features.tenonContent.ImageLinks
41
41
  _formFilled: (e) =>
42
42
  @saveForm() if e.keyCode == 13
43
43
 
44
- _cancel: (e) => @$visibleForm.remove()
44
+ _cancel: (e) =>
45
+ e.preventDefault()
46
+ @$visibleForm.remove()
45
47
 
46
48
  _setButtonActiveState: (e) =>
47
49
  if @$visibleForm.find('input').val() != ''
data/lib/tenon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tenon
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tenon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - factor[e] design initiative