Skip to content

Commit 78aedf6

Browse files
committed
resolve
1 parent 60ec739 commit 78aedf6

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

src/templates/pages/reference/assets/js/reference.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates/pages/reference/assets/js/reference.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates/pages/reference/index.hbs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ slug: reference/
99

1010
<div class="column-span">
1111

12-
<main id="content">
12+
<main id="content" >
1313
<h1>Reference</h1>
1414

1515
<div id="search" class="search-wrapper" role="search"></div>
1616
<div id="collection-list-nav"></div>
1717

18-
<!--class="container-fluid"-->
18+
<!--class="container-fluid"-->
1919
<div id="list" tabindex="2" class="list-wrapper allItems-collection"></div>
2020
<div id="item" tabindex="1" class="item-wrapper apidocs"></div>
2121
<div id="file" class="file-wrapper"></div>
@@ -39,21 +39,25 @@ slug: reference/
3939
4040
var translations;
4141
42-
$(document).ready(function () {
42+
$(document).ready(function() {
4343
var routes = window.location.pathname.split('/');
4444
var lang = routes[1];
4545
if (langs.indexOf(lang) != -1) {
46-
$.getJSON('/assets/reference/' + lang + '.json', function (data) {
46+
$.getJSON('/assets/reference/'+lang+'.json', function(data) {
4747
translations = data;
4848
49-
window.addEventListener('reference-rendered', function () {
49+
window.addEventListener('reference-rendered', function() {
5050
console.log("rendered");
5151
updateLanguage();
5252
}, false);
5353
});
5454
}
5555
});
5656
57+
function removePlaceholder() {
58+
$('#search input').attr('placeholder', '');
59+
}
60+
5761
function updateLanguage() {
5862
if (translations) {
5963
// reference title
@@ -104,27 +108,27 @@ slug: reference/
104108
$('#footer2').html(translations['footer2']);
105109
$('#footer3').html(translations['footer3']);
106110
$('#footer4').html(translations['footer4']);
107-
$('.group-name, .subgroup-name').each(function () {
111+
$('.group-name, .subgroup-name').each(function() {
108112
$(this).text(translations[$(this).text()]);
109113
});
110114
var routes = window.location.hash.split('/');
111115
var obj = routes[1];
112116
var name = routes[2];
113117
if (translations[obj] && translations[obj][name]) {
114118
var entry = translations[obj][name];
115-
$('.description-text').html('<p>' + entry.description + '</p>');
119+
$('.description-text').html('<p>'+entry.description+'</p>');
116120
$('.returns').html(entry.returns);
117-
$('.params').find('ul').each(function (i) {
121+
$('.params').find('ul').each(function(i) {
118122
if (i < entry.params.length) {
119-
$(this).children('li').each(function (j) {
123+
$(this).children('li').each(function(j){
120124
$(this).children('.paramtype').html(entry.params[j]);
121125
});
122126
}
123127
});
124128
}
125129
}
126130
}
127-
</script>
131+
</script>
128132

129133
{{> asterisk}}
130134

0 commit comments

Comments
 (0)