yard_rideliner 0.4.0 → 0.4.1
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: 2236f2d507b77fb485f7b15cdaefd9132c80fd6c
|
4
|
+
data.tar.gz: 11a0728e9ad11acd8cf0118a6b83890349535b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52925126e3d63884e9ed065d6f5a104b5c97a67995ddfa18ea8faf6b2b598484b39dea00b462a2900e9377f9fe55846a8efb946d7b4356a3a3c3e0721195e037
|
7
|
+
data.tar.gz: 891fd383f514d4412f75d75177dbf44b0a8999d563671d5aae8f2f1d45fc486664382a31343fb49b697d0522e37117ea37fec33fc5384cb644f45a68b9874b6e
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<script type="text/javascript">
|
2
|
-
if (match = window.location.pathname.match(/^(.+?)(?:branch|tag)\/[^\/]+\/(.+)/)) {
|
2
|
+
if (match = parent.window.location.pathname.match(/^(.+?)(?:branch|tag)\/[^\/]+\/(.+)/)) {
|
3
3
|
var project_root_url = match[1];
|
4
4
|
var relative_url = match[2];
|
5
5
|
|
@@ -10,18 +10,20 @@ if (match = window.location.pathname.match(/^(.+?)(?:branch|tag)\/[^\/]+\/(.+)/)
|
|
10
10
|
|
11
11
|
var createItem = function(version, index, type) {
|
12
12
|
var base_url = project_root_url + type + '/' + version + '/';
|
13
|
-
var url = base_url
|
13
|
+
var url = base_url;
|
14
|
+
url += (window.location === parent.window.location ? index : relative_url);
|
14
15
|
|
15
16
|
list.append(
|
16
17
|
'<li><div class="item"><span class="object_link">' +
|
17
18
|
'<a href="' + url + '" title="' + version + ' (' + type + ')">' +
|
18
19
|
version + '</a> <small>' + type + '</small></span></div></li>');
|
19
20
|
|
20
|
-
item = $('ul.version#full_list li:last');
|
21
|
-
|
22
21
|
$.ajax({
|
23
22
|
url: url,
|
24
23
|
statusCode: { 404: function() {
|
24
|
+
item = $('ul.version#full_list li').filter(function() {
|
25
|
+
return $(this).find('a').attr('href') === url;
|
26
|
+
});
|
25
27
|
// mark the version as deprecated (missing the current page)
|
26
28
|
// redirect to the index page found in sitemap.json
|
27
29
|
item.addClass('deprecated');
|