From b341f1217d54c975d62dd06d3d447c0a18562225 Mon Sep 17 00:00:00 2001 From: ednut15 Date: Tue, 25 Jun 2019 10:59:14 +0100 Subject: [PATCH] #3996 Removed role button attribute from Trusted notificaton as it is not clickable. --- notebook/static/notebook/js/notificationarea.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/notebook/static/notebook/js/notificationarea.js b/notebook/static/notebook/js/notificationarea.js index c515b5ad5..2a6cc7034 100644 --- a/notebook/static/notebook/js/notificationarea.js +++ b/notebook/static/notebook/js/notificationarea.js @@ -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'); } }); };