Files
DefinitelyTyped/types/jquery.pjax.falsandtru/jquery.pjax.falsandtru-tests.ts
2017-03-24 14:27:52 -07:00

33 lines
643 B
TypeScript

function test_pjax() {
$.pjax();
}
function test_pjax_selector() {
$('a').pjax();
}
function test_pjax_option() {
$.pjax({
area: 'body',
load: {
head: 'base, meta, link',
css: true,
script: true
},
cache: { click: true, submit: false, popstate: true },
server: { query: null }
});
}
function test_pjax_event() {
$.pjax({
wait: 1000
});
$(document).bind('pjax.request', function () {
$('div.loading').fadeIn(100);
});
$(document).bind('pjax.render', function () {
$('div.loading').fadeOut(500);
});
}