Commit c5eb448a authored by Alex Beregszaszi's avatar Alex Beregszaszi

udapp: move legend to the top

parent 2550f3f1
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment