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
1 changed files with 3 additions and 1 deletions

View File

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