urb 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/app/assets/javascripts/urb.js.erb +2 -1
- data/lib/urb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YWRlY2NkMzNhNTYxMGU4Y2QwMWJkZDI5NTViYmQ2MmZkMTY3MTAwOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
OGU5ZGM4NDNkZmI0YWQ0NjllY2MwNDQ1ZWQwMGU5NWUxZmE2ZWIyZg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NjE5NzhjNmY3OTU4OWNjMzY0N2JlNDAyYzA0Zjc4NzNlMzgxY2RiZGI5YmE0
|
|
10
|
+
NDg4ZThhMDE3OTA0ZTgwODU1ZjA2MmM0ZjdiNDk3ZjI1YzY4MWEwM2JkN2Jm
|
|
11
|
+
NjkwNjA5Y2Y3NTc5ZTcxZjMwNzZmYzkxY2I2YmVhOGIwNzA1Nzc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MmU0NWVlMzk2OTUzYWFmMGZlMTVhZTdmODNhZWY2MDYwOWMwNmFmMDE2ZTUw
|
|
14
|
+
MGQyZmY0YjMxNDMwNTcyNDEyMDExZjZmNjMwOGY5M2Q1MmI2YmJiNTgzZTA2
|
|
15
|
+
NTdiOTFiMzlhODA4ZjliZTAyNWIwNGRkZDc4Y2UwODFmNTRmOGE=
|
data/CHANGELOG.rdoc
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
= URB CHANGELOG
|
|
2
2
|
|
|
3
|
+
== Version 0.1.2 (July 8, 2014)
|
|
4
|
+
|
|
5
|
+
* Using target ‘_self’ when not having passed a target
|
|
6
|
+
|
|
3
7
|
== Version 0.1.1 (July 8, 2014)
|
|
4
8
|
|
|
5
9
|
* Only opening link when having used the left click button. Opening in new tab when also having pressed CTRL or Meta (Windows / Command) key
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|
|
@@ -27,13 +27,14 @@ URB = (function() {
|
|
|
27
27
|
if (leftClick) {
|
|
28
28
|
if (target.tagName.toLowerCase() == 'a' && ((css == '') || $.hasClass(target, css))) {
|
|
29
29
|
event.preventDefault();
|
|
30
|
-
open(target.getAttribute('href'), ((event.ctrlKey || event.metaKey) ? '_blank' :
|
|
30
|
+
open(target.getAttribute('href'), ((event.ctrlKey || event.metaKey) ? '_blank' : undefined));
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
open = function(url, target) {
|
|
37
|
+
target || (target = '_self');
|
|
37
38
|
var location = document.createElement('a'), path;
|
|
38
39
|
location.href = url;
|
|
39
40
|
if (location.host == '') {
|
data/lib/urb/version.rb
CHANGED