Skip to content

Commit

Permalink
rename module #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Polak committed Oct 17, 2017
1 parent 13f8919 commit 019191a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/InstantPurchase/etc/frontend/routes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
<route id="onetouchorder" frontName="onetouchorder">
<route id="instantpurchase" frontName="instantpurchase">
<module name="Magento_InstantPurchase" />
</route>
</router>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ define(
var self = this;

this._super();
$.get(urlBuilder.build('onetouchorder/button/available')).done(function (data) {
$.get(urlBuilder.build('instantpurchase/button/available')).done(function (data) {
if (typeof data.available !== 'undefined') {
self.showButton(data.available);
self.options.cards(data.cards);
Expand Down Expand Up @@ -101,7 +101,7 @@ define(
/**
* Confirmation method
*/
oneTouchOrder: function () {
instantPurchase: function () {
var self = this,
form = $(self.options.formSelector),
confirmTemplate = mageTemplate(this.options.confirmTemplate);
Expand All @@ -124,7 +124,7 @@ define(
/** @inheritdoc */
confirm: function () {
$.ajax({
url: urlBuilder.build('onetouchorder/button/placeOrder'),
url: urlBuilder.build('instantpurchase/button/placeOrder'),
data: form.serialize(),
type: 'post',
dataType: 'json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<button type="button"
class="action primary onetouch"
id="product-onetouch-button"
data-bind="click: oneTouchOrder, attr:{title: buttonText}">
data-bind="click: instantPurchase, attr:{title: buttonText}">
<span data-bind="text: buttonText"></span>
</button>

Expand Down

0 comments on commit 019191a

Please sign in to comment.