Skip to content

Commit

Permalink
iIssue #369, Issue #400
Browse files Browse the repository at this point in the history
  • Loading branch information
pavels committed Mar 30, 2016
1 parent 28d8398 commit 1ded1d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion client/src/main/webapp/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ ClientAPIDev.prototype = {
* @method
*/
askForItem : function(pid, whenready) {
$.getJSON("api/item/" + pid, _.bind(function(data) {
// check page ?? Do it better
if (pid && pid.split("@").length > 1) {
pid = pid.split("@")[0];
}
$.getJSON("api/item/" + pid, _.bind(function(data) {
if (!this.isKeyReady("item")) {
this.ctx["item"] = {};
}
Expand Down
3 changes: 2 additions & 1 deletion client/src/main/webapp/js/viewers/pdfview.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ PDFView.prototype.open = function() {
object.attr("data",href);
object.attr("width","100%");
object.attr("height","100%");

object.css({ 'position': 'absolute'});

pdfContainer.append(object);

this.container.append(pdfContainer);
Expand Down

0 comments on commit 1ded1d2

Please sign in to comment.