Skip to content

Commit

Permalink
Merge pull request #62 from szepeviktor/patch-3
Browse files Browse the repository at this point in the history
Use a prefixed ugly global
  • Loading branch information
bathead committed Jan 12, 2017
2 parents bc8cf37 + 7539f4b commit 65fd439
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/control-toggle-switch.js
@@ -1,4 +1,4 @@
var social_icons = [
var vct_social_icons = [
'facebook',
'twitter',
'linkedin',
Expand All @@ -15,13 +15,13 @@ function isToggleTrue(_this) {
}

function hideSocialIcons() {
jQuery.each( social_icons, function( key, icon ) {
jQuery.each( vct_social_icons, function( key, icon ) {
jQuery( '#customize-control-vct_footer_area_social_link_' + icon ).hide();
});
}

function showSocialIcons() {
jQuery.each( social_icons, function( key, icon ) {
jQuery.each( vct_social_icons, function( key, icon ) {
jQuery( '#customize-control-vct_footer_area_social_link_' + icon ).show();
});
}
Expand Down Expand Up @@ -80,4 +80,4 @@ jQuery( document ).ready(function() {
if( !isToggleTrue( '#vct_footer_area_widget_area' ) ) {
hideNumberOfColumns();
}
});
});

0 comments on commit 65fd439

Please sign in to comment.