Skip to content

Commit

Permalink
Added loading text to form button.
Browse files Browse the repository at this point in the history
Close #2918
  • Loading branch information
jamesallsup committed May 19, 2015
1 parent 24d791d commit cea6ae6
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions upload/catalog/controller/payment/bank_transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public function index() {
$data['text_instruction'] = $this->language->get('text_instruction');
$data['text_description'] = $this->language->get('text_description');
$data['text_payment'] = $this->language->get('text_payment');
$data['text_loading'] = $this->language->get('text_loading');

$data['button_confirm'] = $this->language->get('button_confirm');

Expand Down
1 change: 0 additions & 1 deletion upload/catalog/controller/payment/bluepay_redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,4 @@ public function callback() {
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($this->request->get));
}

}
1 change: 1 addition & 0 deletions upload/catalog/controller/payment/cheque.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public function index() {
$data['text_payable'] = $this->language->get('text_payable');
$data['text_address'] = $this->language->get('text_address');
$data['text_payment'] = $this->language->get('text_payment');
$data['text_loading'] = $this->language->get('text_loading');

$data['button_confirm'] = $this->language->get('button_confirm');

Expand Down
2 changes: 2 additions & 0 deletions upload/catalog/controller/payment/cod.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ class ControllerPaymentCod extends Controller {
public function index() {
$data['button_confirm'] = $this->language->get('button_confirm');

$data['text_loading'] = $this->language->get('text_loading');

$data['continue'] = $this->url->link('checkout/success');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/cod.tpl')) {
Expand Down
2 changes: 2 additions & 0 deletions upload/catalog/controller/payment/free_checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ class ControllerPaymentFreeCheckout extends Controller {
public function index() {
$data['button_confirm'] = $this->language->get('button_confirm');

$data['text_loading'] = $this->language->get('text_loading');

$data['continue'] = $this->url->link('checkout/success');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/free_checkout.tpl')) {
Expand Down
4 changes: 1 addition & 3 deletions upload/catalog/controller/payment/g2apay.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

class ControllerPaymentG2APay extends Controller {

public function index() {
$this->load->language('payment/g2apay');

$data['button_confirm'] = $this->language->get('button_confirm');

$data['action'] = $this->url->link('payment/g2apay/checkout', '', 'SSL');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/g2apay.tpl')) {
Expand Down Expand Up @@ -175,5 +174,4 @@ public function ipn() {
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
<div class="buttons">
<div class="pull-right">
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" />
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" data-loading-text="<?php echo $text_loading; ?>" />
</div>
</div>
<script type="text/javascript"><!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<div class="buttons">
<div class="pull-right">
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" />
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" data-loading-text="<?php echo $text_loading; ?>" />
</div>
</div>
<script type="text/javascript"><!--
Expand Down
2 changes: 1 addition & 1 deletion upload/catalog/view/theme/default/template/payment/cod.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="buttons">
<div class="pull-right">
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" />
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" data-loading-text="<?php echo $text_loading; ?>" />
</div>
</div>
<script type="text/javascript"><!--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="buttons">
<div class="pull-right">
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" />
<input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" data-loading-text="<?php echo $text_loading; ?>" />
</div>
</div>
<script type="text/javascript"><!--
Expand Down

0 comments on commit cea6ae6

Please sign in to comment.