caboose-cms 0.5.169 → 0.5.170

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjcyYjYzMjY4OTE5NGI3ODc0OTBiNjIyZTk1ZDUxMjc4ZThhNTBlNw==
4
+ NzAwYTBkNTk5NjJjYzI1ZTM2ODFlYTk3YWE5NDBhMDRiNzEzMjg4ZQ==
5
5
  data.tar.gz: !binary |-
6
- MjBjMjc4M2JlZjYwYTBhZjFiZDIyNjc0ZjA4MmVmOGYyY2M5NGNmNQ==
6
+ YTM3YTc5ZGQ4MDk2OTdhZGQ5YWFjYmMzZDFmMWZiY2RmNzA3MGUxOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmJhYzJlN2RlMDVhZWRkNTFkMjM1NDhhMTRiZjdlMmY2ZTZkOGJlNzhkMjQy
10
- Mjg1MDhmNjZhODVmOTQ5NzcwOGRlMjIwMGJhMWNiNTNhNmM2MjcwY2NlNDA1
11
- ZGFkOGM3MTY3MTMxY2IwMmZjNTAxMjQ1YTAzY2I1N2NlZDQ0YzU=
9
+ MWRlZTYxMjU2OTBmMjUwZDAwZDg2MjYyMDM1ZGY5ZjM4NDhlODEzZjY3MDlm
10
+ MDhiNGI0NjZkNzdhZDc0OGM3YzQ5ZjM0MTFhYTNhMTJmMjEwMzU2NmVkMzgw
11
+ NzlmMGM0Y2I4NzhhMWQ0ZTgzYzUzOWMzN2IwN2QxNzU1NTZiMWE=
12
12
  data.tar.gz: !binary |-
13
- NWE4ZmVjMDU2NTVhODQ3NzE2ODBkMTJmNGFjMDBkOThmM2JiYjBhNTkwMjA4
14
- M2E5NWE5ZGUwNWZlYWI5MTQ0NjRmNWVlNDQ1ZDYwZjAyMWZlY2RhMzE1MzUw
15
- ODM1MTgyNjUzZGRiY2FmMGI1MzZjYTYwODAxYmM2M2E5MDAxMTI=
13
+ NWM1YWY5NDVmZDc0ZjYzOTUwMDRmYmE0NmQ0Y2RlNWMyNzU1ZDVmYjg0NmM0
14
+ MTZiZmQ4OGY0ZWFlZDkxMDhmNjUyZDRjNjkwNjhhN2FmNjNiZGU1MDgyZjM5
15
+ MmU2N2MxYWJkZWY2NTcxMTE5YWE5MjAwMDg5NGU1NzY5Njc2NmY=
@@ -17,12 +17,13 @@ MyAccountOrderController.prototype = {
17
17
  $(document).ready(function() { that.refresh(); });
18
18
  },
19
19
 
20
- refresh: function()
20
+ refresh: function(after)
21
21
  {
22
22
  var that = this;
23
23
  that.refresh_order(function() {
24
24
  $('#order_table').html("<p class='loading'>Getting order...</p>");
25
- that.print();
25
+ that.print();
26
+ if (after) after();
26
27
  });
27
28
  },
28
29
 
@@ -110,7 +111,7 @@ MyAccountOrderController.prototype = {
110
111
  .append($('<td/>').attr('valign', 'top').attr('id', 'shipping_address' ).append(that.noneditable_shipping_address()))
111
112
  .append($('<td/>').attr('valign', 'top').attr('id', 'billing_address' ).append(that.noneditable_billing_address()))
112
113
  .append($('<td/>').attr('valign', 'top').attr('align', 'center').append($('<p/>').html(capitalize_first_letter(that.order.status))))
113
- .append($('<td/>').attr('valign', 'top').attr('align', 'center').append(fstatus))
114
+ .append($('<td/>').attr('valign', 'top').attr('id', 'financial_status' ).attr('align', 'center').append(fstatus))
114
115
  );
115
116
  return table;
116
117
  },
@@ -447,10 +448,16 @@ MyAccountOrderController.prototype = {
447
448
 
448
449
  payment_relay_handler: function(resp)
449
450
  {
451
+ var that = this;
450
452
  console.log('RELAY');
451
453
  console.log(resp);
452
454
  if (resp.success == true)
453
- controller.refresh();
455
+ {
456
+ $('#payment_form').empty();
457
+ $('#payment_message').empty().html("<p class='success'>Your payment has been processed successfully.</p>");
458
+ setTimeout(function() { $('#payment_message').empty() }, 5000);
459
+ that.refresh();
460
+ }
454
461
  else if (resp.error)
455
462
  $('#payment_message').html("<p class='note error'>" + resp.error + "</p>");
456
463
  else
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.169'
2
+ VERSION = '0.5.170'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.169
4
+ version: 0.5.170
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry