Skip to content

Commit 8cf4db8

Browse files
committed
MAGETWO-44720: Add to cart button is displayed on MAP pop up for product that is out of stock
-- fix cs
1 parent 01a85c9 commit 8cf4db8

File tree

1 file changed

+2
-4
lines changed
  • app/code/Magento/Msrp/view/base/web/js

1 file changed

+2
-4
lines changed

app/code/Magento/Msrp/view/base/web/js/msrp.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ define([
7272
$('body').append($(this.popupDOM).html());
7373
this.$popup = $($(this.popupDOM).html());
7474

75-
$(this.options.popupId).on('click', function (e) {
76-
this.openPopup(e);
77-
}.bind(this));
75+
$(this.options.popupId).on('click', this.openPopup.bind(this));
7876
}
7977

8078
if (this.options.helpLinkId) {
@@ -109,7 +107,7 @@ define([
109107
*
110108
* @param element
111109
*/
112-
openPopup: function (element){
110+
openPopup: function (element) {
113111
this.popUpOptions.position.of = $(element.target);
114112
this.$popup.find(this.options.msrpLabelId).html(this.options.msrpPrice);
115113
this.$popup.find(this.options.priceLabelId).html(this.options.realPrice);

0 commit comments

Comments
 (0)