From 1ae3e755479b2422057c40052d43b20b1304574c Mon Sep 17 00:00:00 2001 From: SMaker Date: Mon, 28 Apr 2014 21:52:19 +0900 Subject: [PATCH] =?UTF-8?q?Captcha=20=EC=95=A0=EB=93=9C=EC=98=A8=EC=9D=84?= =?UTF-8?q?=20=ED=82=A4=EB=A9=B4=20PC=EC=97=90=EC=84=9C=20jquery=EB=A5=BC?= =?UTF-8?q?=20=EC=A4=91=EB=B3=B5=20=EB=A1=9C=EB=93=9C=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/captcha/captcha.addon.php | 7 +++++-- addons/captcha_member/captcha_member.addon.php | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/addons/captcha/captcha.addon.php b/addons/captcha/captcha.addon.php index a03a9d847..f57024704 100644 --- a/addons/captcha/captcha.addon.php +++ b/addons/captcha/captcha.addon.php @@ -12,8 +12,11 @@ if(!defined("__XE__")) exit(); if(!class_exists('AddonCaptcha', false)) { // 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); - Context::loadFile(array('./common/js/xe.min.js', 'head', NULL, -100000), true); + if(Mobile::isFromMobilePhone()) + { + 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 { diff --git a/addons/captcha_member/captcha_member.addon.php b/addons/captcha_member/captcha_member.addon.php index 211fd8687..e56393f32 100644 --- a/addons/captcha_member/captcha_member.addon.php +++ b/addons/captcha_member/captcha_member.addon.php @@ -12,8 +12,11 @@ if(!defined("__XE__")) exit(); if(!class_exists('AddonMemberCaptcha', false)) { // 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); - Context::loadFile(array('./common/js/xe.min.js', 'head', NULL, -100000), true); + if(Mobile::isFromMobilePhone()) + { + 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 {