You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by GitBox <gi...@apache.org> on 2020/02/24 07:11:26 UTC

[GitHub] [wicket] martin-g commented on a change in pull request #408: allow to abort currently executing request for an Ajax channel

martin-g commented on a change in pull request #408: allow to abort currently executing request for an Ajax channel
URL: https://github.com/apache/wicket/pull/408#discussion_r383106891
 
 

 ##########
 File path: wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
 ##########
 @@ -319,6 +328,26 @@
 			return c.schedule(callback);
 		},
 
+		// register AJAX request
+		registerCurrentAjaxRequest: function(name, jqXHR) {
+			var c = this.channels[name];
+			if (isUndef(c)) {
+				Wicket.Log.error("No channel with name " + name)
+			} else {
+				c.jqXHR = jqXHR;
+			}
+		},
+
+		// aborts the current request for channel with name name
+		abortCurrentQuestForChannel(name) {
 
 Review comment:
   s/Quest/Request/ :-)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services