#183 Check IE browser version when connect to admin page

This commit is contained in:
akasima 2013-12-23 16:47:32 +09:00
parent 880af9a5ba
commit 4418533082
2 changed files with 15 additions and 0 deletions

View file

@ -1512,6 +1512,10 @@
<value xml:lang="ko"><![CDATA[일]]></value> <value xml:lang="ko"><![CDATA[일]]></value>
<value xml:lang="en"><![CDATA[Sun]]></value> <value xml:lang="en"><![CDATA[Sun]]></value>
</item> </item>
<item name="checkBrowserIE8">
<value xml:lang="ko"><![CDATA[IE8 이하의 브라우저 사용시 관리자페이지가 정상동작 하지 않을 수 있습니다.]]></value>
<value xml:lang="en"><![CDATA[Please connect by IE 9 or higher.]]></value>
</item>
<!-- site lock --> <!-- site lock -->
<item name="subtitle_sitelock"> <item name="subtitle_sitelock">
<value xml:lang="ko"><![CDATA[사이트 잠금]]></value> <value xml:lang="ko"><![CDATA[사이트 잠금]]></value>

View file

@ -10,6 +10,9 @@
<div class="x_page-header"> <div class="x_page-header">
<h1>{$lang->control_panel} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_dashboard" target="_blank">{$lang->help}</a></h1> <h1>{$lang->control_panel} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_dashboard" target="_blank">{$lang->help}</a></h1>
</div> </div>
<div id="checkBrowserMessage" class="message error" style="display:none;">
<h2>{$lang->checkBrowserIE8}</h2>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/admin/tpl/index/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}"> <div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/admin/tpl/index/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p> <p>{$XE_VALIDATOR_MESSAGE}</p>
</div> </div>
@ -138,6 +141,14 @@ jQuery(function($)
$(this).removeClass('hover').find('>.action').hide(); $(this).removeClass('hover').find('>.action').hide();
} }
}); });
// check browser version
if($.browser.msie == true ) {
var arrBrowserVersion = $.browser.version.split('.');
if(parseInt(arrBrowserVersion[0]) <= 8) {
$('#checkBrowserMessage').show();
}
}
}); });
function obj2Array(htObj) function obj2Array(htObj)