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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to