clipboard-rails 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/clipboard/rails/version.rb +1 -1
- data/vendor/assets/javascripts/clipboard.js +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80457eff12874b89ee09a347f0b27096fe149152
|
4
|
+
data.tar.gz: f8d14f3eaeff6c955092d82cd70eb902a437e0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 371701cc6575be2be3fa31a2eb54b84adb3cfad5a710f4501969cc5b4a96ca4364fa462bd59afe00a56fb6ca814e6b670b27d1757e2ccb6b67db35395dfe0cdc
|
7
|
+
data.tar.gz: d99a12ac57e0f2c9a0b3c9065c2e6b636c81c714346caba3b020937ccefac84f2ac17f86e50ac214d85909ae144c2d6164fc2fa06b0730a1965ce70b50c884d7
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@ clipboard-rails gem is the integration of clipboard.js javascript library for yo
|
|
6
6
|
clipboard.js is a modern approach to copy text to clipboard No Flash. No dependencies. Just 2kb
|
7
7
|
source: https://github.com/zenorocha/clipboard.js
|
8
8
|
|
9
|
+
Ruby gems url: https://rubygems.org/gems/clipboard-rails
|
10
|
+
|
9
11
|
## Installation
|
10
12
|
|
11
13
|
Add this line to your application's Gemfile:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* clipboard.js v1.5.
|
2
|
+
* clipboard.js v1.5.1
|
3
3
|
* https://zenorocha.github.io/clipboard.js
|
4
4
|
*
|
5
5
|
* Licensed MIT © Zeno Rocha
|
@@ -259,8 +259,7 @@ function select(element) {
|
|
259
259
|
var selectedText;
|
260
260
|
|
261
261
|
if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
|
262
|
-
element.
|
263
|
-
element.selectionEnd = element.value.length;
|
262
|
+
element.select();
|
264
263
|
|
265
264
|
selectedText = element.value;
|
266
265
|
}
|