mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Merge pull request #674 from smaker/develop.captcha
Captcha 애드온을 켜면, PC 화면에서 jquery를 중복 로드하는 문제 수정
This commit is contained in:
commit
c6c05c090e
2 changed files with 10 additions and 4 deletions
|
|
@ -12,8 +12,11 @@ if(!defined("__XE__")) exit();
|
||||||
if(!class_exists('AddonCaptcha', false))
|
if(!class_exists('AddonCaptcha', false))
|
||||||
{
|
{
|
||||||
// On the mobile mode, XE Core does not load jquery and xe.js as normal.
|
// On the mobile mode, XE Core does not load jquery and xe.js as normal.
|
||||||
Context::loadFile(array('./common/js/jquery.min.js', 'head', NULL, -100000), true);
|
if(Mobile::isFromMobilePhone())
|
||||||
Context::loadFile(array('./common/js/xe.min.js', 'head', NULL, -100000), true);
|
{
|
||||||
|
Context::loadFile(array('./common/js/jquery.min.js', 'head', NULL, -100000), true);
|
||||||
|
Context::loadFile(array('./common/js/xe.min.js', 'head', NULL, -100000), true);
|
||||||
|
}
|
||||||
|
|
||||||
class AddonCaptcha
|
class AddonCaptcha
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,11 @@ if(!defined("__XE__")) exit();
|
||||||
if(!class_exists('AddonMemberCaptcha', false))
|
if(!class_exists('AddonMemberCaptcha', false))
|
||||||
{
|
{
|
||||||
// On the mobile mode, XE Core does not load jquery and xe.js as normal.
|
// On the mobile mode, XE Core does not load jquery and xe.js as normal.
|
||||||
Context::loadFile(array('./common/js/jquery.min.js', 'head', NULL, -100000), true);
|
if(Mobile::isFromMobilePhone())
|
||||||
Context::loadFile(array('./common/js/xe.min.js', 'head', NULL, -100000), true);
|
{
|
||||||
|
Context::loadFile(array('./common/js/jquery.min.js', 'head', NULL, -100000), true);
|
||||||
|
Context::loadFile(array('./common/js/xe.min.js', 'head', NULL, -100000), true);
|
||||||
|
}
|
||||||
|
|
||||||
class AddonMemberCaptcha
|
class AddonMemberCaptcha
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue