// pz2.js event handlers:
mkdru.pz2Init = function () {
- if (mkdru.state.recid) {
- mkdru.pz2.record(mkdru.state.recid);
- } else if (mkdru.state.query) {
+ if (mkdru.state.query) {
mkdru.triggerSearch();
}
//mkdru.pz2.stat();
);
}
$('.mkdru-result-list').html(html);
- $('.mkdru-results').show();
+ if (mkdru.state.recid) {
+ mkdru.pz2.record(mkdru.state.recid);
+ }
+ else {
+ $('.mkdru-results').show();
+ }
};
mkdru.pz2Status = function (data) {
if (mkdru.usesessions) {
mkdru.pz2.init();
- } else if (mkdru.state.recid) {
+ }
+ else if (mkdru.state.recid) {
mkdru.pz2.record(mkdru.state.recid);
- } else if (mkdru.state.query) {
+ }
+ else if (mkdru.state.query) {
mkdru.triggerSearch();
}
});