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

Commit e812edb

Browse files
committed
- add validation to libbitcoin field in the settings
- prevent badges from blocking click events
1 parent 1d5727e commit e812edb

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

css/obBase.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6040,6 +6040,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
60406040
border-radius: 50%;
60416041
color: white;
60426042
background-color: #FFA41C;
6043+
pointer-events: none;
60436044
}
60446045

60456046
#ov1 .alignCenter {

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
"SSLIsOn": "SSL is on",
183183
"SSLIsOff": "SSL is off",
184184
"LibbitcoinServerAddress": "Libbitcoin Server Address",
185+
"libbitCoinPlaceholder": "tcp://serveraddress:port or leave this field blank to use the default value (recommended)",
185186
"SMTPNotificationsWarning": "Turn email notifications on/off",
186187
"SMTPNotifications": "SMTP Notifications",
187188
"SMTPPassword": "SMTP Password",

js/templates/settings.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ <h3 class="padding15 margin0 fontWeight500"><%= polyglot.t('Advanced') %></h3>
10981098
id="libbitcoin_server"
10991099
type="text"
11001100
class="fieldItem"
1101+
pattern="^tcp:\/\/[A-Za-z0-9\.-]{4,}(?:\:\d{2,4})$"
1102+
placeholder="<%= polyglot.t('libbitCoinPlaceholder') %>"
11011103
value="<%= ob.user.libbitcoin_server %>">
11021104
</div>
11031105
</div>

0 commit comments

Comments
 (0)