only open pdf if url has changed

This commit is contained in:
j 2014-01-07 15:34:55 +00:00
parent e1953b671d
commit 6e072a5635

View file

@ -16,8 +16,10 @@ Ox.load(function() {
} }
} }
if (event == 'pdf' && Ox.isUndefined(oxid)) { if (event == 'pdf' && Ox.isUndefined(oxid)) {
if (PDFView.url != data.pdf) {
PDFView.open(data.pdf); PDFView.open(data.pdf);
} }
}
}); });
Ox.$parent.postMessage('init', {}); Ox.$parent.postMessage('init', {});
}); });