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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48fb6179ca0d169c509bdb474451aafb9867f4e2
|
4
|
+
data.tar.gz: 347a5e77d1fa93343900a072d17c9fd0a016d76c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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', '.
|
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) =>
|
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