From 9debf77cc5c95a4b922ede434ac5bbeb56caa986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 23 Jan 2015 14:52:49 +0000 Subject: [PATCH 1/2] Toolbar is shown only when showToolbar is set to true --- src/js/pdf-viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/pdf-viewer.js b/src/js/pdf-viewer.js index 39189c2..0f1dde1 100644 --- a/src/js/pdf-viewer.js +++ b/src/js/pdf-viewer.js @@ -6,7 +6,7 @@ angular.module('pdf') function($window, $log, pdfDelegate) { return { restrict: 'E', - template: '', + template: '
', scope: true, controller: 'PdfCtrl', link: function(scope, element, attrs) { From 780a7a6148fe097989b14c33ed7ad0701a8a839d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Sun, 25 Jan 2015 01:11:07 +0000 Subject: [PATCH 2/2] Move 'showToolbar' ng-if and remove and uneeded div wrapper --- src/js/pdf-viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/pdf-viewer.js b/src/js/pdf-viewer.js index 0f1dde1..1464ea8 100644 --- a/src/js/pdf-viewer.js +++ b/src/js/pdf-viewer.js @@ -6,7 +6,7 @@ angular.module('pdf') function($window, $log, pdfDelegate) { return { restrict: 'E', - template: '
', + template: '', scope: true, controller: 'PdfCtrl', link: function(scope, element, attrs) {