Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion assets/js/coupon-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ var coupon_app = new Vue({
},
methods: {

remove_coupon: function() {

// Clear current coupon and re-apply pricing without discounts
this.coupon = false;
this.apply_coupon();

},

add_event_tabs: function() {

$('.wu-plans-frequency-selector li a').each(function() {
Expand Down Expand Up @@ -266,6 +274,8 @@ var coupon_app = new Vue({
} else {

$('.old-price').hide();
$('.off-value').hide();
$('.setupfee-off-value').hide();

this.coupon_id = '';

Expand Down Expand Up @@ -317,4 +327,4 @@ function wu_set_yearly_value(list, value) {

}

})(jQuery);
})(jQuery);
2 changes: 1 addition & 1 deletion assets/js/coupon-code.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion assets/js/lib/vue.min.js

Large diffs are not rendered by default.

Loading
Loading