Files
2014-08-24 09:57:53 +03:00

36 lines
736 B
TypeScript

/// <reference path="jquery.pjax.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
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);
});
}