#3996 Removed role button attribute from Trusted notificaton as it is not clickable.

pull/4693/head
ednut15 7 years ago
parent b5b494d2ad
commit b341f1217d

@ -398,15 +398,14 @@ define([
return false;
}, {'title':'Javascript enabled for notebook display'});
// don't allow 'Trusted' button to be clicked
$(tnw.selector).attr('disabled', true)
$(tnw.selector).attr('role', 'button')
$(tnw.selector).attr('disabled', true);
$(tnw.selector).css('cursor', 'help');
} else {
tnw.set_message(i18n.msg._("Not Trusted"), undefined, function() {
that.notebook.trust_notebook();
return false;
}, {'title':'Javascript disabled for notebook display'});
$(tnw.selector).attr('role', 'button')
$(tnw.selector).attr('role', 'button');
}
});
};

Loading…
Cancel
Save