#Status: Fixed
Signed-off-by: A V Minhaz <minhazav@gmail.com>
This commit is contained in:
minhaz 2014-05-12 10:42:07 +00:00
parent c70c1cf880
commit 0ec8199ef7

View File

@ -166,6 +166,8 @@ var AJAX = {
} else if ($(this).attr('target')) {
return true;
} else if ($(this).hasClass('ajax') || $(this).hasClass('disableAjax')) {
//reset the alteredTarget array, as specified AJAX operation has finished
AJAX.alteredTargets.length = 0;
return true;
} else if (href && href.match(/^#/)) {
return true;
@ -192,6 +194,11 @@ var AJAX = {
break;
}
};
//triggers a confirm dialog if:
//the user has performes some operations on loaded page
//the user clicks on some link, (won't trigger for buttons)
//the the click event is not triggered by script
if (event.type === 'click'
&& event.isTrigger !== true
&& isInputAltered