From efb49e4a621d8c5415753820f634bb789769fc97 Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Sat, 17 Jun 2017 13:15:07 +0530 Subject: [PATCH 1/7] Rename modal to confirmation-modal --- js/gratipay/confirm.js | 4 ++-- scss/components/{modal.scss => confirmation-modal.scss} | 2 +- tests/ttw/test_team_distributing.py | 2 +- www/%team/distributing/index.html.spt | 2 +- www/assets/gratipay.css.spt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename scss/components/{modal.scss => confirmation-modal.scss} (94%) diff --git a/js/gratipay/confirm.js b/js/gratipay/confirm.js index 7a76cd29c5..1ef4159a5d 100644 --- a/js/gratipay/confirm.js +++ b/js/gratipay/confirm.js @@ -1,5 +1,5 @@ Gratipay.confirm = function(message, yes, no) { - var $m = $('.modal'); + var $m = $('.confirmation-modal'); $m.show(); $('.confirmation-message', $m).html(message); $('.yes', $m).off('click').click(function() { yes(); Gratipay.confirm.close(); }); @@ -7,5 +7,5 @@ Gratipay.confirm = function(message, yes, no) { }; Gratipay.confirm.close = function() { - $('.modal').hide(); + $('.confirmation-modal').hide(); }; diff --git a/scss/components/modal.scss b/scss/components/confirmation-modal.scss similarity index 94% rename from scss/components/modal.scss rename to scss/components/confirmation-modal.scss index e5a4c2427f..97d99a1b29 100644 --- a/scss/components/modal.scss +++ b/scss/components/confirmation-modal.scss @@ -1,4 +1,4 @@ -.modal { +.confirmation-modal { display: none; position: fixed; left: 50%; diff --git a/tests/ttw/test_team_distributing.py b/tests/ttw/test_team_distributing.py index 89fb3034c0..f7b12eac59 100644 --- a/tests/ttw/test_team_distributing.py +++ b/tests/ttw/test_team_distributing.py @@ -52,7 +52,7 @@ def test_owner_can_remove_a_member(self): self.sign_in('picard') self.visit('/TheEnterprise/distributing/') self.css('table.team span.remove').first.click() - self.wait_for('.modal .yes').first.click() + self.wait_for('.confirmation-modal .yes').first.click() assert self.wait_for_success() == 'alice has been removed from the team.' assert self.enterprise.get_memberships() == [] diff --git a/www/%team/distributing/index.html.spt b/www/%team/distributing/index.html.spt index 3769e038fb..a1e322a8a0 100644 --- a/www/%team/distributing/index.html.spt +++ b/www/%team/distributing/index.html.spt @@ -59,7 +59,7 @@ banner = team.name -