piggybak_coupons 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ $(function() {
18
18
  piggybak_coupons.apply_coupon(false);
19
19
  return false;
20
20
  });
21
- $('#submit input').click(function() {
21
+ $('#submit input').unbind('click').click(function() {
22
22
  piggybak_coupons.apply_coupon(true);
23
23
  return false;
24
24
  });
@@ -60,7 +60,9 @@ var piggybak_coupons = {
60
60
  $('#coupon_application_row').show();
61
61
  piggybak.update_totals();
62
62
  } else {
63
- $('#coupon_response').html(data.message).show();
63
+ if($('#coupon_code').val() != '') {
64
+ $('#coupon_response').html(data.message).show();
65
+ }
64
66
  $('#coupon_application_total').html('$0.00');
65
67
  $('#coupon_application_row').hide();
66
68
  piggybak.update_totals();
@@ -1,3 +1,3 @@
1
1
  module PiggybakCoupons
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak_coupons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: 623399165070746312
98
+ hash: -1746874936992918947
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements:
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: 623399165070746312
107
+ hash: -1746874936992918947
108
108
  requirements: []
109
109
  rubyforge_project:
110
110
  rubygems_version: 1.8.23