mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
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:
parent
9b999b7694
commit
f923ff04f3
1 changed files with 3 additions and 1 deletions
|
|
@ -187,6 +187,8 @@ $('div.gnb').xeMenu();
|
||||||
// Modal Window
|
// Modal Window
|
||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
|
|
||||||
|
var ESC = 27;
|
||||||
|
|
||||||
$.fn.xeModalWindow = function(){
|
$.fn.xeModalWindow = function(){
|
||||||
this
|
this
|
||||||
.not('.xe-modal-window')
|
.not('.xe-modal-window')
|
||||||
|
|
@ -250,7 +252,7 @@ $.fn.xeModalWindow = function(){
|
||||||
function after(){ $this.trigger('after-open.mw') };
|
function after(){ $this.trigger('after-open.mw') };
|
||||||
|
|
||||||
$(document).bind('keydown.mw', function(event){
|
$(document).bind('keydown.mw', function(event){
|
||||||
if(event.which == ESC_KEY) {
|
if(event.which == ESC) {
|
||||||
$this.trigger('close.mw');
|
$this.trigger('close.mw');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue