balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

By setting parallel parameter to true doesn't work, is still working as parallel: false #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jquery-translate version: jquery.translate-1.4.7-debug-all.js
jQuery version: 1.6.1
browser: Chrome
OS: Ubuntu Linux

What is the expected output? What do you see instead?

The output is just fine, but the requests are not being sent how they are 
supposed to. By setting the parallel parameter to true, I expect a request for 
every chunk of text. Is like is not being listened, it behaves as it is always 
false.

Thank you.

Original issue reported on code.google.com by stabile....@gmail.com on 4 Dec 2011 at 5:26

GoogleCodeExporter commented 9 years ago
The parallel option is for sending multiple requests at a time instead of 
waiting for each one to complete. If you want to translate elements in separate 
requests do something like this:

$(elements).each(function(){
  $(this).translate(from, to);
});

Original comment by balazs.endresz on 5 Dec 2011 at 12:05