From 6a6020972c5e3c508cac3671603d6259d2907f6f Mon Sep 17 00:00:00 2001 From: Felipe Orellana Date: Mon, 5 Mar 2018 16:42:20 +0000 Subject: [PATCH 1/2] Adds generic css class for all gateways so its easy to update checkout button through css --- gateway_selector/public/js/base.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gateway_selector/public/js/base.js b/gateway_selector/public/js/base.js index 91dd929..f047f83 100644 --- a/gateway_selector/public/js/base.js +++ b/gateway_selector/public/js/base.js @@ -101,19 +101,14 @@ frappe.gateway_selector._generic_embed = Class.extend({ */ show: function() { $('#gateway-selector-continue').text("Continue with " + this.gateway.label); - if ( this.gateway.name.toLowerCase() == "paypal" ) { - $('#gateway-selector-continue').addClass('paypal'); - } + $('#gateway-selector-continue').addClass(this.gateway.name); }, /** * Called when the form is hidden */ hide: function() { - if ( this.gateway.name.toLowerCase() == "paypal" ) { - $('#gateway-selector-continue').removeClass('paypal'); - } - + $('#gateway-selector-continue').removeClass(this.gateway.name); }, /** From 06ffde6c7fc0025cd5c1b9615d685516b5465feb Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Fri, 16 Mar 2018 16:12:23 +0600 Subject: [PATCH 2/2] bumped to version 1.0.3 --- gateway_selector/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway_selector/__init__.py b/gateway_selector/__init__.py index 49cdcfa..43b803e 100644 --- a/gateway_selector/__init__.py +++ b/gateway_selector/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -__version__ = '1.0.2' +__version__ = '1.0.3'