Skip to content

Commit

Permalink
Merge pull request #1735 from jhawthorn/remove_payment_cruft
Browse files Browse the repository at this point in the history
Remove some payment cruft
  • Loading branch information
jhawthorn authored Feb 23, 2017
2 parents de24d50 + 7398b54 commit f297c58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions backend/app/assets/javascripts/spree/backend/payments/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,5 @@ $(document).ready(function() {
}
}
);

$('.cvvLink').click(function(event){
window_name = 'cvv_info';
window_options = 'left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1';
window.open($(this).prop('href'), window_name, window_options);
event.preventDefault();
});

$('select.jump_menu').change(function(){
window.location = this.options[this.selectedIndex].value;
});
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
<div data-hook="card_code" class="field">
<%= label_tag "card_code#{payment_method.id}", Spree::CreditCard.human_attribute_name(:card_code), class: 'required' %>
<%= text_field_tag "#{param_prefix}[verification_value]", '', id: "card_code#{payment_method.id}", class: 'required fullwidth cardCode', size: 5 %>
<a href="/content/cvv" class="info cvvLink" target="_blank">
(<%= Spree.t(:what_is_this) %>)
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit f297c58

Please sign in to comment.