1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 17:39:46 +01:00

Fixed missing target issue.

This commit is contained in:
Lóna Lore 2016-03-07 13:42:58 +01:00
parent 80cf7652a9
commit 3a1d17e6a2

View File

@ -397,7 +397,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
}
// BC.
if(options.target.charAt(0) != "#" && options.target.charAt(0) != ".")
if(options.target && options.target.charAt(0) != "#" && options.target.charAt(0) != ".")
{
options.target = "#" + options.target;
}