This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/1.0.4' into develop
- Loading branch information
Showing
6 changed files
with
363 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var config = { | ||
deps: [ | ||
'Magento_Theme/js/responsive', | ||
'Magento_Theme/js/theme' | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
define([ | ||
'jquery', | ||
'matchMedia', | ||
'mage/tabs', | ||
'domReady!' | ||
], function ($, mediaCheck) { | ||
'use strict'; | ||
|
||
mediaCheck({ | ||
media: '(min-width: 768px)', | ||
|
||
/** | ||
* Switch to Desktop Version. | ||
*/ | ||
entry: function () { | ||
var galleryElement; | ||
|
||
(function () { | ||
|
||
var productInfoMain = $('.product-info-main'), | ||
productInfoAdditional = $('#product-info-additional'); | ||
|
||
if (productInfoAdditional.length) { | ||
productInfoAdditional.addClass('hidden'); | ||
productInfoMain.removeClass('responsive'); | ||
} | ||
|
||
})(); | ||
|
||
galleryElement = $('[data-role=media-gallery]'); | ||
|
||
if (galleryElement.length && galleryElement.data('mageZoom')) { | ||
galleryElement.zoom('enable'); | ||
} | ||
|
||
if (galleryElement.length && galleryElement.data('mageGallery')) { | ||
galleryElement.gallery('option', 'disableLinks', true); | ||
galleryElement.gallery('option', 'showNav', false); | ||
galleryElement.gallery('option', 'showThumbs', true); | ||
} | ||
}, | ||
|
||
/** | ||
* Switch to Mobile Version. | ||
*/ | ||
exit: function () { | ||
var galleryElement; | ||
|
||
$('.action.toggle.checkout.progress').on('click.gotoCheckoutProgress', function () { | ||
var myWrapper = '#checkout-progress-wrapper'; | ||
|
||
scrollTo(myWrapper + ' .title'); | ||
$(myWrapper + ' .title').addClass('active'); | ||
$(myWrapper + ' .content').show(); | ||
}); | ||
|
||
$('body').on('click.checkoutProgress', '#checkout-progress-wrapper .title', function () { | ||
$(this).toggleClass('active'); | ||
$('#checkout-progress-wrapper .content').toggle(); | ||
}); | ||
|
||
galleryElement = $('[data-role=media-gallery]'); | ||
|
||
setTimeout(function () { | ||
if (galleryElement.length && galleryElement.data('mageZoom')) { | ||
galleryElement.zoom('disable'); | ||
} | ||
|
||
if (galleryElement.length && galleryElement.data('mageGallery')) { | ||
galleryElement.gallery('option', 'disableLinks', false); | ||
galleryElement.gallery('option', 'showNav', true); | ||
galleryElement.gallery('option', 'showThumbs', false); | ||
} | ||
}, 2000); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
define([ | ||
'jquery', | ||
'mage/smart-keyboard-handler', | ||
'mage/mage', | ||
'mage/ie-class-fixer', | ||
'domReady!' | ||
], function ($, keyboardHandler) { | ||
'use strict'; | ||
|
||
if ($('body').hasClass('checkout-cart-index')) { | ||
if ($('#co-shipping-method-form .fieldset.rates').length > 0 && | ||
$('#co-shipping-method-form .fieldset.rates :checked').length === 0 | ||
) { | ||
$('#block-shipping').on('collapsiblecreate', function () { | ||
$('#block-shipping').collapsible('forceActivate'); | ||
}); | ||
} | ||
} | ||
|
||
$('.cart-summary').mage('sticky', { | ||
container: '#maincontent' | ||
}); | ||
|
||
$('.panel.header > .header.links').clone().appendTo('#store\\.links'); | ||
|
||
keyboardHandler.apply(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.