Wait for the sock to be ready as a proxy for the Studio header being ready
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -62,6 +62,9 @@ TRUTHY_WAIT = {
|
||||
re.compile(r'^Pages \|'): [
|
||||
'XBlock'
|
||||
],
|
||||
re.compile(r'^Studio Home \|'): [
|
||||
'toggle_sock'
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user