Loader improvement
This commit is contained in:
parent
e4d2407c62
commit
6c22b4b601
|
@ -1016,7 +1016,6 @@ function startDapp(web3, isOraclesNetwork) {
|
|||
votingKey,
|
||||
contractAddress,
|
||||
function(_ballotsArray) {
|
||||
$(".loading-container").hide();
|
||||
ballotsArrayFiltered = _ballotsArray;
|
||||
showBallotsPage(_ballotsArray, web3, contractAddress);
|
||||
}
|
||||
|
@ -1224,6 +1223,8 @@ function startDapp(web3, isOraclesNetwork) {
|
|||
}
|
||||
}
|
||||
|
||||
$(".loading-container").hide();
|
||||
|
||||
//vote now button onclick event
|
||||
$(".vote-now").on("click", function() {
|
||||
getBallotView(votingKey, $(this).attr("ballot-id"), null, true, web3, contractAddress, function(ballotView) {
|
||||
|
|
|
@ -54,7 +54,6 @@ function startDapp(web3, isOraclesNetwork) {
|
|||
votingKey,
|
||||
contractAddress,
|
||||
function(_ballotsArray) {
|
||||
$(".loading-container").hide();
|
||||
ballotsArrayFiltered = _ballotsArray;
|
||||
showBallotsPage(_ballotsArray, web3, contractAddress);
|
||||
}
|
||||
|
@ -262,6 +261,8 @@ function startDapp(web3, isOraclesNetwork) {
|
|||
}
|
||||
}
|
||||
|
||||
$(".loading-container").hide();
|
||||
|
||||
//vote now button onclick event
|
||||
$(".vote-now").on("click", function() {
|
||||
getBallotView(votingKey, $(this).attr("ballot-id"), null, true, web3, contractAddress, function(ballotView) {
|
||||
|
|
|
@ -78,6 +78,6 @@
|
|||
</div>
|
||||
</footer>
|
||||
<script src="./assets/javascripts/sweetalert2.min.js" type="text/javascript"></script>
|
||||
<script src="./assets/javascripts/application.js?v=1.67" type="text/javascript"></script>
|
||||
<script src="./assets/javascripts/application.js?v=1.68" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue