Files
postgres-web/dep/django-selectable/selectable/tests/qunit/jquery-loader.js
Magnus Hagander 6ffc1d4811 Import newer version of django-selectable
Sync up to the same version we have on the commitfest app, which will
also be required for eventual django 1.11 support.
2018-03-09 16:43:49 -05:00

14 lines
675 B
JavaScript

(function() {
// Get any jquery=___ param from the query string.
var jqversion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/);
var uiversion = location.search.match(/[?&]ui=(.*?)(?=&|$)/);
var path;
window.jqversion = jqversion && jqversion[1] || '1.11.2';
window.uiversion = uiversion && uiversion[1] || '1.11.4';
jqpath = 'http://code.jquery.com/jquery-' + window.jqversion + '.js';
uipath = 'http://code.jquery.com/ui/' + window.uiversion + '/jquery-ui.js';
// This is the only time I'll ever use document.write, I promise!
document.write('<script src="' + jqpath + '"></script>');
document.write('<script src="' + uipath + '"></script>');
}());