1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fixes #2091 - expandit issue.

This commit is contained in:
Cameron
2016-12-01 11:50:09 -08:00
parent 59e97ba8dc
commit 1eccbf30d6

View File

@@ -1397,6 +1397,11 @@ $(document).ready(function()
}
// Legacy Stuff to be converted.
// BC Expandit() function
@@ -1406,20 +1411,13 @@ $(document).ready(function()
function expandit(e) {
if(typeof e === 'object')
{
// var href = ($(e).is("a")) ? $(e).attr("href") : '';
if($(e).is("a"))
{
var href = $(e).attr("href");
}
else
{
var href = undefined;
}
if(href === "#" || e === null || href === undefined)
{
@@ -1428,16 +1426,21 @@ $(document).ready(function()
$(idt).toggle("slow");
return false;
}
var id = "#" + e;
}
var id = "#" + e;
$(id).toggle("slow");
return false;
$(id).toggle("slow");
return false;
}
var addinput = function(text,rep) {
// quick fix to prevent JS errors - proper match was done only for latin words