Wait for the sock to be ready as a proxy for the Studio header being ready

This commit is contained in:
Calen Pennington
2018-04-10 14:27:31 -04:00
parent 2d7fdbcd97
commit 5474ec0a8f
2 changed files with 7 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import 'jquery.smoothScroll';
'use strict';
var toggleSock = function(e) {
var toggleSock = function (e) {
e.preventDefault();
var $btnShowSockLabel = $(this).find('.copy-show');
@@ -33,7 +33,9 @@ var toggleSock = function(e) {
});
};
domReady(function() {
domReady(function () {
// toggling footer additional support
$('.cta-show-sock').bind('click', toggleSock);
});
export { toggleSock }

View File

@@ -62,6 +62,9 @@ TRUTHY_WAIT = {
re.compile(r'^Pages \|'): [
'XBlock'
],
re.compile(r'^Studio Home \|'): [
'toggle_sock'
],
}