Browse Source

Update ajax.js

Volodymyr Tkach 2 years ago
parent
commit
d5f84c2955
1 changed files with 1 additions and 0 deletions
  1. 1 0
      js/ajax.js

+ 1 - 0
js/ajax.js

@@ -170,6 +170,7 @@ ajax.reloadTagById = function(id) {
 };
 
 ajax.processFormSubmit = function(event) {
+	if(!event) var event = window.event;
 	event.preventDefault();
 	var form = event.target;
 	var func = form.getAttribute('data-ajax-func');