From f12dcdd2cf1295f872243ce721191fbb5109e454 Mon Sep 17 00:00:00 2001 From: Tom Booth Date: Fri, 4 Dec 2015 13:14:20 +0000 Subject: [PATCH] Reflect eGain changes in the other selectors used The rest of the selectors also needed to be changed with the template change at eGain's end. --- app/assets/javascripts/webchat-iframe.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/webchat-iframe.html.erb b/app/assets/javascripts/webchat-iframe.html.erb index 02e5ecb0e..7d1b498fe 100644 --- a/app/assets/javascripts/webchat-iframe.html.erb +++ b/app/assets/javascripts/webchat-iframe.html.erb @@ -52,10 +52,10 @@ if (message.evt === 'load') { loadIFrame(message.url, message.title); } else if (message.evt === 'accept') { - document.querySelector('.egofr-hmrc5-btnOK').click(); + document.querySelector('.egofr-hmrc-btnOK').click(); signalOfferStatus(); } else if (message.evt === 'reject') { - document.querySelector('.egofr-hmrc5-btnCancel').click(); + document.querySelector('.egofr-hmrc-btnCancel').click(); signalOfferStatus(); } }