diff --git a/data/web/fragment.com/about.html b/data/web/fragment.com/about.html
index 8c46fa8f33..332e19642f 100644
--- a/data/web/fragment.com/about.html
+++ b/data/web/fragment.com/about.html
@@ -38,9 +38,9 @@
-
+
-
+
diff --git a/data/web/fragment.com/js/auction.js b/data/web/fragment.com/js/auction.js
index d5affc5707..e56a7f8ccc 100644
--- a/data/web/fragment.com/js/auction.js
+++ b/data/web/fragment.com/js/auction.js
@@ -15,6 +15,7 @@ var Main = {
$(cont).on('click.curPage', '.js-btn-tonkeeper', Main.eTonkeeperOpen);
$(cont).on('click.curPage', '.js-auction-unavail', Main.eAuctionUnavailable);
$(cont).on('click.curPage', '.js-howitworks', Main.eHowitworks);
+ $(cont).on('click.curPage', '.js-howofferworks', Main.eHowofferworks);
$(cont).on('click.curPage', '.logout-link', Login.logOut);
$(cont).on('click.curPage', '.ton-logout-link', Login.tonLogOut);
$(cont).on('click.curPage', '.js-copy-code', Main.copyCode);
@@ -22,6 +23,7 @@ var Main = {
state.$headerMenu = $('.js-header-menu');
state.$unavailPopup = $('.js-unavailable-popup');
state.$howitworksPopup = $('.js-howitworks-popup');
+ state.$howofferworksPopup = $('.js-howofferworks-popup');
state.$mainSearchField = $('.js-main-search-field');
state.$mainSearchForm = $('.js-main-search-form');
state.$mainSearchForm.on('submit', Main.eMainSearchSubmit);
@@ -266,6 +268,24 @@ var Main = {
}
});
},
+ eHowofferworks: function(e) {
+ e.preventDefault();
+ e.stopImmediatePropagation();
+ var onEnterPress = function(e) {
+ if (e.keyCode == Keys.RETURN) {
+ e.stopImmediatePropagation();
+ closePopup(Aj.state.$howofferworksPopup);
+ }
+ };
+ openPopup(Aj.state.$howofferworksPopup, {
+ onOpen: function() {
+ $(document).on('keydown', onEnterPress);
+ },
+ onClose: function() {
+ $(document).off('keydown', onEnterPress);
+ }
+ });
+ },
amountFieldValue: function($form, field) {
var $fieldEl = field ? $form.field(field) : $form;
var minValue = $fieldEl.attr('data-min') || null;