Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
682f0709
Commit
682f0709
authored
May 31, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
parent
49a15510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
renderer.js
src/app/renderer.js
+14
-0
No files found.
src/app/renderer.js
View file @
682f0709
...
@@ -61,6 +61,7 @@ function Renderer (appAPI, compilerEvent) {
...
@@ -61,6 +61,7 @@ function Renderer (appAPI, compilerEvent) {
})
})
}
}
})
})
setInterval
(()
=>
{
updateAccountBalances
(
appAPI
)
},
1000
)
}
}
Renderer
.
prototype
.
clear
=
function
()
{
Renderer
.
prototype
.
clear
=
function
()
{
...
@@ -344,4 +345,17 @@ Renderer.prototype.contracts = function (data, source) {
...
@@ -344,4 +345,17 @@ Renderer.prototype.contracts = function (data, source) {
$
(
'.'
+
css
.
col2
+
' input,textarea'
).
click
(
function
()
{
this
.
select
()
})
$
(
'.'
+
css
.
col2
+
' input,textarea'
).
click
(
function
()
{
this
.
select
()
})
}
}
function
updateAccountBalances
(
appAPI
)
{
var
accounts
=
$
(
'#txorigin'
).
children
(
'option'
)
accounts
.
each
(
function
(
index
,
value
)
{
(
function
(
acc
)
{
appAPI
.
getBalance
(
accounts
[
acc
].
value
,
function
(
err
,
res
)
{
if
(
!
err
)
{
accounts
[
acc
].
innerText
=
accounts
[
acc
].
value
.
substring
(
0
,
8
)
+
'... ('
+
res
.
toString
()
+
' ether)'
}
})
})(
index
)
})
}
module
.
exports
=
Renderer
module
.
exports
=
Renderer
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment