Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit a04af34

Browse files
author
ameliagoodman
committed
edited based on rmisio's comments
1 parent 0f141b1 commit a04af34

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

css/obBase.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6407,6 +6407,6 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
64076407
margin-top: 10px;
64086408
display: block;
64096409
color: #9999A0;
6410-
height: 200px;
6411-
overflow: scroll
6410+
max-height: 200px;
6411+
overflow: scroll;
64126412
}

js/languages/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@
546546
"goodSMTPAuthentication": "You have successfully connected to the SMTP server.",
547547
"tagIsTooLongHeadline": "The tag is too long",
548548
"tagIsTooLongBody": "Tags cannot be more than %{smart_count} character long. |||| Tags cannot be more than %{smart_count} characters long.",
549-
"retryingConnection": "The connection to your node was lost. Retrying connection attempt %{attempt} of %{total}."
549+
"retryingConnection": "The connection to your node was lost. Retrying connection attempt %{attempt} of %{total}.",
550+
"peersFail": "Call to peers API failed."
550551
},
551552
"pageConnectingMessages": {
552553
"listingConnect": "Connecting to listing ${listing}",

js/views/settingsVw.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ module.exports = pageVw.extend({
239239
placeholder_text_multiple: window.polyglot.t('chosenJS.placeHolderTextMultiple')
240240
});
241241

242-
var connectedPeers = ""
242+
var connectedPeers = "";
243243
$.ajax({
244244
url: self.serverUrl+ "routing_table",
245245
success: function(data){
@@ -248,10 +248,10 @@ module.exports = pageVw.extend({
248248
connectedPeers += (peer['ip'] + ":" + peer['port'] + "\n");
249249
})
250250
self.$el.find('span.js-connectedPeers').text(connectedPeers);
251-
$('.js-connectedPeers').hide();
251+
self.$el.find('.js-connectedPeers').hide();
252252
},
253253
error: function(){
254-
self.$el.find('.js-numConnectedPeers').text("Call to peers API failed.");
254+
self.$el.find('.js-numConnectedPeers').text(window.polyglot.t('errorMessages.peersFail'));
255255
}
256256
});
257257

@@ -343,7 +343,7 @@ module.exports = pageVw.extend({
343343
},
344344

345345
showPeers: function () {
346-
$('.js-connectedPeers').toggle();
346+
this.$el.find('.js-connectedPeers').toggle();
347347
},
348348

349349
validateDescription: function() {

0 commit comments

Comments
 (0)