Skip to content

Instantly share code, notes, and snippets.

@nojimage
Created June 12, 2014 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nojimage/39d6bb82b9b4390836c3 to your computer and use it in GitHub Desktop.
Save nojimage/39d6bb82b9b4390836c3 to your computer and use it in GitHub Desktop.
diff --git a/js/tygh/ajax.js b/js/tygh/ajax.js
index b0c28c4..1326a8b 100644
--- a/js/tygh/ajax.js
+++ b/js/tygh/ajax.js
@@ -56,7 +56,7 @@
params.data.skip_result_ids_check = params.skip_result_ids_check;
}
- if (activeQueries >= QUERIES_LIMIT) { // if we have queries in the queue, push request to it
+ if (activeQueries > QUERIES_LIMIT) { // if we have queries in the queue, push request to it
queryStack.unshift(function() {
methods.request(url, params);
});
@@ -168,7 +168,7 @@
submitForm: function(form, clicked_elm)
{
- if (activeQueries >= QUERIES_LIMIT) { // if we have queries in the queue, push request to it
+ if (activeQueries > QUERIES_LIMIT) { // if we have queries in the queue, push request to it
queryStack.unshift(function() {
methods.submitForm(form, clicked_elm);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment