mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes #2091 - expandit issue.
This commit is contained in:
@@ -1397,6 +1397,11 @@ $(document).ready(function()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Legacy Stuff to be converted.
|
// Legacy Stuff to be converted.
|
||||||
// BC Expandit() function
|
// BC Expandit() function
|
||||||
|
|
||||||
@@ -1406,20 +1411,13 @@ $(document).ready(function()
|
|||||||
|
|
||||||
function expandit(e) {
|
function expandit(e) {
|
||||||
|
|
||||||
|
if(typeof e === 'object')
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
// 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");
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
var href = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(href === "#" || e === null || href === undefined)
|
if(href === "#" || e === null || href === undefined)
|
||||||
{
|
{
|
||||||
@@ -1428,16 +1426,21 @@ $(document).ready(function()
|
|||||||
$(idt).toggle("slow");
|
$(idt).toggle("slow");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
var id = "#" + e;
|
|
||||||
|
|
||||||
|
|
||||||
|
var id = "#" + e;
|
||||||
|
|
||||||
$(id).toggle("slow");
|
$(id).toggle("slow");
|
||||||
return false;
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var addinput = function(text,rep) {
|
var addinput = function(text,rep) {
|
||||||
|
|
||||||
// quick fix to prevent JS errors - proper match was done only for latin words
|
// quick fix to prevent JS errors - proper match was done only for latin words
|
||||||
|
Reference in New Issue
Block a user