Skip to content

Commit

Permalink
use javascript functions instead of jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Jun 6, 2017
1 parent be55361 commit 2b741c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/universal-dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2b741c6

Please sign in to comment.