udapp: move legend to the top

pull/1/head
Alex Beregszaszi 8 years ago
parent 2550f3f11c
commit c5eb448ab2
  1. 12
      src/universal-dapp.js

@ -135,6 +135,13 @@ UniversalDApp.prototype.getBalance = function (address, cb) {
UniversalDApp.prototype.render = function () {
var self = this;
var $legend = $('<div class="legend" />')
.append($('<div class="attach"/>').text('Attach'))
.append($('<div class="transact"/>').text('Transact'))
.append($('<div class="call"/>').text('Call'));
self.$el.append($legend);
if (self.contracts.length === 0) {
self.$el.append(self.getABIInputForm());
} else {
@ -153,12 +160,7 @@ UniversalDApp.prototype.render = function () {
self.$el.append(self.renderOutputModifier(self.contracts[c].name, $contractEl));
}
}
var $legend = $('<div class="legend" />')
.append($('<div class="attach"/>').text('Attach'))
.append($('<div class="transact"/>').text('Transact'))
.append($('<div class="call"/>').text('Call'));
self.$el.append($legend);
return self.$el;
};

Loading…
Cancel
Save