clipboard-rails 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clipboard/rails/version.rb +1 -1
- data/vendor/assets/javascripts/clipboard.js +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9786c8c3887dd2f3f68184a98a827b00f84280c6
|
4
|
+
data.tar.gz: 34db356a467a263cef35f9e229e79f481ec5d3c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b3621964578c3bda33a56e79f4cc16ec2a3156c9877aa658cef16392c4dcc72d14925337efbfad5d1845a3ef223ed0d2600fc79c69ed04941a226bf1425ab05
|
7
|
+
data.tar.gz: 1b8e778dce4da4ef1c60232a5ff0d7e63ac12ac4ab23d85e5f1cba46fa955c6bcbc6d53e7555eb0b7a67468a36a6c3292238f83ef619bae8141b190691c5a08e
|
@@ -294,7 +294,7 @@ var ClipboardAction = (function () {
|
|
294
294
|
|
295
295
|
/**
|
296
296
|
* Only removes the fake element after another click event, that way
|
297
|
-
*
|
297
|
+
* a user can hit `Ctrl+C` to copy because selection still exists.
|
298
298
|
*/
|
299
299
|
|
300
300
|
ClipboardAction.prototype.removeFake = function removeFake() {
|
@@ -321,6 +321,7 @@ var ClipboardAction = (function () {
|
|
321
321
|
var range = document.createRange();
|
322
322
|
var selection = window.getSelection();
|
323
323
|
|
324
|
+
selection.removeAllRanges();
|
324
325
|
range.selectNodeContents(this.target);
|
325
326
|
selection.addRange(range);
|
326
327
|
this.selectedText = selection.toString();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clipboard-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mohammed Sadiq
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|