PATH:
home
/
letacommog
/
crmleta
/
libraries
/
jquery
/* * jQuery AjaxQ - AJAX request queueing for jQuery * * Version: 0.0.1 * Date: July 22, 2008 * * Copyright (c) 2008 Oleg Podolsky (oleg.podolsky@gmail.com) * Licensed under the MIT (MIT-LICENSE.txt) license. * * http://plugins.jquery.com/project/ajaxq * http://code.google.com/p/jquery-ajaxq/ */ jQuery.ajaxq = function (queue, options) { // Initialize storage for request queues if it's not initialized yet if (typeof document.ajaxq == "undefined") document.ajaxq = {q:{}, r:null}; // Initialize current queue if it's not initialized yet if (typeof document.ajaxq.q[queue] == "undefined") document.ajaxq.q[queue] = []; if (typeof options != "undefined") // Request settings are given, enqueue the new request { // Copy the original options, because options.complete is going to be overridden var optionsCopy = {}; for (var o in options) optionsCopy[o] = options[o]; options = optionsCopy; // Override the original callback var originalCompleteCallback = options.complete; options.complete = function (request, status) { // Dequeue the current request document.ajaxq.q[queue].shift (); document.ajaxq.r = null; // Run the original callback if (originalCompleteCallback) originalCompleteCallback (request, status); // Run the next request from the queue if (document.ajaxq.q[queue].length > 0) document.ajaxq.r = jQuery.ajax (document.ajaxq.q[queue][0]); }; // Enqueue the request document.ajaxq.q[queue].push (options); // Also, if no request is currently running, start it if (document.ajaxq.q[queue].length == 1) document.ajaxq.r = jQuery.ajax (options); } else // No request settings are given, stop current request and clear the queue { if (document.ajaxq.r) { document.ajaxq.r.abort (); document.ajaxq.r = null; } document.ajaxq.q[queue] = []; } }
[+]
..
[+]
rochal-jQuery-slimScroll
[+]
jqplot
[-] jquery.stickytableheaders.min.js
[edit]
[+]
pdfjs
[-] jquery.ba-outside-events.min.js
[edit]
[-] jquery.form.js
[edit]
[-] jquery.placeholder.js
[edit]
[+]
datepicker
[-] jquery_windowmsg.js
[edit]
[+]
ckeditor
[+]
dangrossman-bootstrap-daterangepicker
[+]
garand-sticky
[+]
malihu-custom-scrollbar
[-] jquery.jqote2.min.js
[edit]
[+]
colorpicker
[-] jquery.virtualpages.js
[edit]
[-] jquery.additions.js
[edit]
[+]
boxslider
[+]
lazyYT
[+]
autosize
[+]
gridster
[+]
twitter-text-js
[+]
defunkt-jquery-pjax
[-] jquery.hoverIntent.minified.js
[edit]
[-] jquery.blockUI.js
[edit]
[+]
bootstrapswitch
[-] jquery.class.min.js
[edit]
[-] jquery.ajaxq.js
[edit]
[-] jquery.easing.1.3.js
[edit]
[-] vtchart.js
[edit]
[-] VtJqplotInterface.js
[edit]
[+]
multiplefileupload
[+]
jquery-ui
[+]
timepicker
[+]
posabsolute-jQuery-Validation-Engine
[-] jquery-visibility.min.js
[edit]
[+]
node-inflection
[-] jqueryRating.js
[edit]
[-] license.txt
[edit]
[+]
instaFilta
[-] jquery.printf.min.js
[edit]
[-] jstorage.min.js
[edit]
[-] jquery.spin.min.js
[edit]
[+]
select2
[-] jquery.sparkline.min.js
[edit]
[-] jquery.fitvids.js
[edit]
[+]
pnotify
[-] jquery.jeditable.min.js
[edit]
[+]
gantt
[-] jquery.tagcloud.js
[edit]
[+]
chosen
[+]
pivot
[+]
Viewer.js
[+]
handsontable
[-] jquery.min.js
[edit]
[+]
video-js
[+]
jquery.datepick.package-4.1.0
[-] jquery.cycle.min.js
[edit]