1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

BC fix for expandit() function

This commit is contained in:
Cameron
2013-10-31 17:50:41 -07:00
parent a77246c01b
commit a763ba72d1

View File

@@ -742,17 +742,18 @@ $(document).ready(function()
function expandit(e) {
// var href = ($(e).is("a")) ? $(e).attr("href") : '';
if($(e).is("a"))
{
var href = $(e).attr("href");
}
if(href === "#" || e === null)
if(href === "#" || e === null || href === undefined)
{
idt = $(e).next("div");
$(idt).toggle("slow");
return false;;
}