From 9b9f2e5808b77cd3e86b8432a9b4d635938811b6 Mon Sep 17 00:00:00 2001 From: Nathan Mares Date: Thu, 21 May 2015 10:42:41 +1000 Subject: [PATCH] Remove call to deprecated function getElementsByClassName --- module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.js b/module.js index 022778b..bcf84f0 100755 --- a/module.js +++ b/module.js @@ -106,7 +106,7 @@ M.format_grid.init = function(Y, the_editing_on, the_section_redirect, the_num_s document.getElementById("gridshadebox_right").style.display = ""; } // Remove href link from icon anchors so they don't compete with JavaScript onlick calls. - var icon_links = getElementsByClassName(document.getElementById("gridiconcontainer"), "a", "gridicon_link"); + var icon_links = Y.one(document.getElementById('gridiconcontainer')).all('a.gridicon_link'); for(var i = 0; i < icon_links.length; i++) { icon_links[i].href = "#"; } @@ -403,4 +403,4 @@ M.format_grid.shadebox.get_page_height = function() { } return pageHeight; -}; \ No newline at end of file +}; -- 1.9.1