Bug Fix #4417,#4403: Single-clicking a foreign key causes JavaScript error

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
This commit is contained in:
Chirayu Chiripal 2014-05-16 10:50:10 +05:30
parent 9a81facf41
commit e9a9f442a8

View File

@ -199,7 +199,7 @@ var AJAX = {
//the user has performed some operations on loaded page
//the user clicks on some link, (won't trigger for buttons)
//the click event is not triggered by script
if (event.type === 'click' &&
if (typeof event !== 'undefined' && event.type === 'click' &&
event.isTrigger !== true &&
isInputAltered &&
confirm(PMA_messages['strConfirmNavigation']) === false