From 2b741c691e42ac1e31c5c5c4a82f24e7a09c19ed Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 6 Jun 2017 17:05:38 +0200 Subject: [PATCH] use javascript functions instead of jquery --- src/universal-dapp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index dcddfd432d..21208d13a0 100644 --- a/src/universal-dapp.js +++ b/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)) {