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
d56f79d4
Commit
d56f79d4
authored
Oct 27, 2015
by
d11e9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only render contract interfaces if RHP is visible
parent
3290e6fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
universal-dapp.js
assets/js/universal-dapp.js
+1
-1
index.html
index.html
+4
-4
No files found.
assets/js/universal-dapp.js
View file @
d56f79d4
...
...
@@ -5,7 +5,7 @@ function UniversalDApp (contracts, options) {
this
.
renderOutputModifier
=
options
.
renderOutputModifier
||
function
(
name
,
content
)
{
return
content
;
};
if
(
!
options
.
vm
&&
web3
.
currentProvider
)
{
console
.
log
(
"Provider already set"
)
}
else
if
(
options
.
vm
)
{
this
.
vm
=
new
EthVm
();
//@todo this does not calculate the gas costs correctly but gets the job done.
...
...
index.html
View file @
d56f79d4
...
...
@@ -238,7 +238,7 @@
var
endpoint
=
$
(
'#web3Endpoint'
).
val
();
web3
.
setProvider
(
new
web3
.
providers
.
HttpProvider
(
endpoint
)
);
compile
();
}
);
});
function
executionContextChange
(
ev
)
{
if
(
ev
.
target
.
value
==
'web3'
&&
!
confirm
(
"Are you sure you want to connect to a local ethereum node?"
)
)
{
...
...
@@ -467,7 +467,8 @@
$
(
'.toggleRHP'
).
click
(
function
(){
toggledRHP
=
!
toggledRHP
;
setEditorSize
(
toggledRHP
?
0
:
window
.
localStorage
[
EDITOR_SIZE_CACHE_KEY
]
);
$
(
'.toggleRHP'
).
toggleClass
(
'toggled'
,
toggledRHP
)
$
(
'.toggleRHP'
).
toggleClass
(
'toggled'
,
toggledRHP
);
if
(
!
toggledRHP
)
compile
();
});
...
...
@@ -499,7 +500,6 @@
var
previousInput
=
''
;
var
sourceAnnotations
=
[];
var
compile
=
function
()
{
editor
.
getSession
().
clearAnnotations
();
sourceAnnotations
=
[];
editor
.
getSession
().
removeMarker
(
errMarkerId
);
...
...
@@ -530,7 +530,7 @@
});
}
if
(
noFatalErrors
)
renderContracts
(
data
,
editor
.
getValue
());
if
(
noFatalErrors
&&
!
toggledRHP
)
renderContracts
(
data
,
editor
.
getValue
());
};
var
compileTimeout
=
null
;
...
...
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