Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(checkout): aftermarket and reserved domains can no longer be adde…
Browse files Browse the repository at this point in the history
…d to cart
  • Loading branch information
KaiSchwarz-cnic committed Aug 27, 2021
1 parent ff55498 commit 56186d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ SearchResult.prototype.getPrice = function (pricetype, doformat, term) {
SearchResult.prototype.showError = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-error" data-toggle="tooltip" title="${row.REASON}">${translations.domaincheckererror}</span>`
Expand All @@ -1077,6 +1078,7 @@ SearchResult.prototype.showError = function () {
SearchResult.prototype.showInvalid = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-taken" data-toggle="tooltip" title="${translations.label_descr_invaliddn}">${translations.domaincheckerinvaliddn}</span>`
Expand All @@ -1091,6 +1093,7 @@ SearchResult.prototype.showInvalid = function () {
SearchResult.prototype.showReserved = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-reserved" data-toggle="tooltip" title="${translations.label_descr_reserveddn}">${translations.domaincheckerreserveddn}</span>`
Expand All @@ -1105,6 +1108,7 @@ SearchResult.prototype.showReserved = function () {
SearchResult.prototype.showAftermarket = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-premium" data-toggle="tooltip" title="${translations.label_descr_aftermarket}">${translations.aftermarket}</span>`
Expand All @@ -1113,6 +1117,7 @@ SearchResult.prototype.showAftermarket = function () {
row.element
.find('div.second-line.registerprice')
.html('<span>—</span><br><span><br></span>');

};
SearchResult.prototype.showAvailable = function () {
const row = this.data;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ SearchResult.prototype.getPrice = function (pricetype, doformat, term) {
SearchResult.prototype.showError = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-error" data-toggle="tooltip" title="${row.REASON}">${translations.domaincheckererror}</span>`
Expand All @@ -118,6 +119,7 @@ SearchResult.prototype.showError = function () {
SearchResult.prototype.showInvalid = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-taken" data-toggle="tooltip" title="${translations.label_descr_invaliddn}">${translations.domaincheckerinvaliddn}</span>`
Expand All @@ -132,6 +134,7 @@ SearchResult.prototype.showInvalid = function () {
SearchResult.prototype.showReserved = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-reserved" data-toggle="tooltip" title="${translations.label_descr_reserveddn}">${translations.domaincheckerreserveddn}</span>`
Expand All @@ -146,6 +149,7 @@ SearchResult.prototype.showReserved = function () {
SearchResult.prototype.showAftermarket = function () {
const row = this.data;
row.element
.toggleClass('clickable')
.find('div.availability')
.html(
`<span class="label label-hx label-hx-premium" data-toggle="tooltip" title="${translations.label_descr_aftermarket}">${translations.aftermarket}</span>`
Expand All @@ -154,6 +158,7 @@ SearchResult.prototype.showAftermarket = function () {
row.element
.find('div.second-line.registerprice')
.html('<span>—</span><br><span><br></span>');

};
SearchResult.prototype.showAvailable = function () {
const row = this.data;
Expand Down

0 comments on commit 56186d4

Please sign in to comment.