From 91b293f1125dd810b5c1282d3acf401d6a9a3963 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Wed, 21 Jun 2017 16:04:33 -0400 Subject: [PATCH] I commented out a piece of useless code. I commented a piece of code that was used to call the feature image of a page for the drop down menu. --- js/app.js | 26 +++++++++++++------------- js/custom/pageSetup.js | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/js/app.js b/js/app.js index 1481ce2..b1a499d 100644 --- a/js/app.js +++ b/js/app.js @@ -17,17 +17,17 @@ $(document).ready(function () { $(this).toggleClass('open'); $(this).siblings('ul').toggleClass('open'); }); - $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){ - var menuImg = $(this).parent('li').prop('id'); - var menuNum = menuImg.match(/\d+/)[0]; - var menuImgSrc = 'img_for_menu_' + menuNum; - if (window['img_for_menu_' + menuNum]) { - $(this).find('li.image-placeholder').html(''); - } else { - $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul'); - $(this).find('li.image-placeholder').remove(); - } - //console.log('ul = ' + menuImg); - //console.log('menu-id = ' + menuNum); - }); +// $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){ +// var menuImg = $(this).parent('li').prop('id'); +// var menuNum = menuImg.match(/\d+/)[0]; +// var menuImgSrc = 'img_for_menu_' + menuNum; +// if (window['img_for_menu_' + menuNum]) { +// $(this).find('li.image-placeholder').html(''); +// } else { +// $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul'); +// $(this).find('li.image-placeholder').remove(); +// } +// //console.log('ul = ' + menuImg); +// //console.log('menu-id = ' + menuNum); +// }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 7b76e81..338fa59 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -8,17 +8,17 @@ $(document).ready(function () { $(this).toggleClass('open'); $(this).siblings('ul').toggleClass('open'); }); - $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){ - var menuImg = $(this).parent('li').prop('id'); - var menuNum = menuImg.match(/\d+/)[0]; - var menuImgSrc = 'img_for_menu_' + menuNum; - if (window['img_for_menu_' + menuNum]) { - $(this).find('li.image-placeholder').html(''); - } else { - $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul'); - $(this).find('li.image-placeholder').remove(); - } - //console.log('ul = ' + menuImg); - //console.log('menu-id = ' + menuNum); - }); +// $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){ +// var menuImg = $(this).parent('li').prop('id'); +// var menuNum = menuImg.match(/\d+/)[0]; +// var menuImgSrc = 'img_for_menu_' + menuNum; +// if (window['img_for_menu_' + menuNum]) { +// $(this).find('li.image-placeholder').html(''); +// } else { +// $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul'); +// $(this).find('li.image-placeholder').remove(); +// } +// //console.log('ul = ' + menuImg); +// //console.log('menu-id = ' + menuNum); +// }); }); -- 2.17.1