Fixed a bug for using unclared ESC_KEY variable

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9206 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-09-20 01:15:54 +00:00
parent 9b999b7694
commit f923ff04f3

View file

@ -187,6 +187,8 @@ $('div.gnb').xeMenu();
// Modal Window
jQuery(function($){
var ESC = 27;
$.fn.xeModalWindow = function(){
this
.not('.xe-modal-window')
@ -250,7 +252,7 @@ $.fn.xeModalWindow = function(){
function after(){ $this.trigger('after-open.mw') };
$(document).bind('keydown.mw', function(event){
if(event.which == ESC_KEY) {
if(event.which == ESC) {
$this.trigger('close.mw');
return false;
}