HomePhabricator

Use jQuery.ajax() for HTTP requests

Description

Use jQuery.ajax() for HTTP requests

Modified requestTts() to use jQuery.ajax()
(http://api.jquery.com/jQuery.ajax/). Added some logic for handling
errors.

Reworked the logic for when requests are sent; now requests aren't
sent if either an audio already have a source or if there is a request
pending.

Change-Id: Ifc76c8326cd276212562697b33672e3a12a3f46d

Details

Provenance
Sebastian_Berlin-WMSEAuthored on Apr 21 2017, 12:49 PM
Parents
rEWISf79170e4140c: Don't create empty <text> elements
Branches
Unknown
Tags
Unknown
ChangeId
Ifc76c8326cd276212562697b33672e3a12a3f46d