-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into product-video-PR1
- Loading branch information
Showing
42 changed files
with
577 additions
and
124 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
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
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
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
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
35 changes: 35 additions & 0 deletions
35
app/code/Magento/Checkout/view/frontend/web/js/checkout-loader.js
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,35 @@ | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
/*jslint browser: true*/ | ||
(function () { | ||
'use strict'; | ||
|
||
var checkInterval; | ||
|
||
checkInterval = setInterval(function () { | ||
var checkoutContainer = document.getElementById('checkoutSteps'), | ||
steps, | ||
loaderContainer; | ||
|
||
//Return if checkout steps container not loaded | ||
if (!checkoutContainer) { | ||
return; | ||
} | ||
|
||
//Checkout steps | ||
steps = checkoutContainer.getElementsByTagName('li'); | ||
|
||
//Remove loader and clear update interval if content loaded | ||
if (steps && steps.length > 0) { | ||
clearInterval(checkInterval); | ||
loaderContainer = document.getElementById('checkout-loader'); | ||
|
||
if (loaderContainer && loaderContainer.parentNode) { | ||
loaderContainer.parentNode.removeChild(loaderContainer); | ||
} | ||
} | ||
|
||
}, 100); | ||
})(); |
31 changes: 31 additions & 0 deletions
31
app/code/Magento/Checkout/view/frontend/web/js/model/full-screen-loader.js
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,31 @@ | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
/*jshint browser:true jquery:true*/ | ||
/*global alert*/ | ||
define( | ||
['jquery'], | ||
function ($) { | ||
'use strict'; | ||
|
||
var containerId = '#checkout'; | ||
|
||
return { | ||
|
||
/** | ||
* Start full page loader action | ||
*/ | ||
startLoader: function () { | ||
$(containerId).trigger('processStart'); | ||
}, | ||
|
||
/** | ||
* Stop full page loader action | ||
*/ | ||
stopLoader: function () { | ||
$(containerId).trigger('processStop'); | ||
} | ||
}; | ||
} | ||
); |
Oops, something went wrong.