From 4a1b4bc656ac8b0f3073dd18a7578a0b881fa328 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Thu, 26 Dec 2019 12:09:07 +0300 Subject: [PATCH] [de mobile] Review: disable buttons accept / reject when there is not changes --- apps/common/mobile/lib/controller/Collaboration.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index bd0338bd0..bf3e52f35 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -364,6 +364,7 @@ define([ } if(arrChangeReview.length == 0) { $('#current-change').css('display','none'); + $('.accept-reject').find('a').addClass('disabled'); } else { $('#current-change #date-change').html(arrChangeReview[0].date); $('#current-change #user-name').html(arrChangeReview[0].user); @@ -438,8 +439,10 @@ define([ $('#current-change').hide(); $('#btn-goto-change').hide(); $('#btn-delete-change').hide(); + $('.accept-reject').find('a').addClass('disabled'); } else { $('#current-change').show(); + $('.accept-reject').find('a').removeClass('disabled'); this.initChange(); } }