mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +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
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue