use javascript functions instead of jquery

pull/1/head
yann300 8 years ago
parent be55361a44
commit 2b741c691e
  1. 8
      src/universal-dapp.js

@ -307,12 +307,12 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) {
// FIXME: maybe have a flag for this in the JSON?
// FIXME: maybe fix getInstanceInterface() below for this case
if (contract.bytecode.length === 0) {
var $createButton = $newButton.find('.constructor .call')
var $createButton = $newButton.querySelector('.constructor .call')
// NOTE: we must show the button to have CSS properly lined up
$createButton.text('Create')
$createButton.attr('disabled', 'disabled')
$createButton.attr('title', 'This contract does not implement all functions and thus cannot be created.')
$createButton.innerText = 'Create'
$createButton.setAttribute('disabled', 'disabled')
$createButton.setAttribute('title', 'This contract does not implement all functions and thus cannot be created.')
}
if ((contract.metadata === undefined) || (contract.metadata.length === 0)) {

Loading…
Cancel
Save