1
0
mirror of synced 2025-02-17 04:23:15 +03:00

Merge pull request #893 from bgertonson/ajax_url

#608 fix to allow distinct ajax urls
This commit is contained in:
Igor Vaynberg 2013-02-19 10:03:28 -08:00
commit 6b65976e17

View File

@ -340,7 +340,8 @@ the specific language governing permissions and limitations under the Apache Lic
var timeout, // current scheduled but not yet executed request
requestSequence = 0, // sequence used to drop out-of-order responses
handler = null,
quietMillis = options.quietMillis || 100;
quietMillis = options.quietMillis || 100,
ajaxUrl = options.url;
return function (query) {
window.clearTimeout(timeout);
@ -348,7 +349,7 @@ the specific language governing permissions and limitations under the Apache Lic
requestSequence += 1; // increment the sequence
var requestNumber = requestSequence, // this request's sequence number
data = options.data, // ajax data function
url = options.url, // ajax url string or function
url = ajaxUrl, // ajax url string or function
transport = options.transport || $.ajax,
type = options.type || 'GET', // set type of request (GET or POST)
params = {};