Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
vjFaLk committed Mar 16, 2018
2 parents 2c01e43 + 06ffde6 commit 6fda3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gateway_selector/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

__version__ = '1.0.2'
__version__ = '1.0.3'

9 changes: 2 additions & 7 deletions gateway_selector/public/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

/**
Expand Down

0 comments on commit 6fda3bd

Please sign in to comment.