mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
BC fix for expandit() function
This commit is contained in:
@@ -742,17 +742,18 @@ $(document).ready(function()
|
|||||||
|
|
||||||
|
|
||||||
function expandit(e) {
|
function expandit(e) {
|
||||||
|
|
||||||
// var href = ($(e).is("a")) ? $(e).attr("href") : '';
|
// var href = ($(e).is("a")) ? $(e).attr("href") : '';
|
||||||
if($(e).is("a"))
|
if($(e).is("a"))
|
||||||
{
|
{
|
||||||
var href = $(e).attr("href");
|
var href = $(e).attr("href");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(href === "#" || e === null)
|
if(href === "#" || e === null || href === undefined)
|
||||||
{
|
{
|
||||||
idt = $(e).next("div");
|
idt = $(e).next("div");
|
||||||
|
|
||||||
$(idt).toggle("slow");
|
$(idt).toggle("slow");
|
||||||
return false;;
|
return false;;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user