This commit is contained in:
Henry Oswald
2014-07-29 10:29:46 +01:00
4 changed files with 15 additions and 2 deletions
@@ -27,6 +27,15 @@ div.full-size.pdf(ng-controller="PdfController")
}"
) {{ pdf.logEntries.errors.length + pdf.logEntries.warnings.length }}
a(
ng-href="{{pdf.url}}"
target="_blank"
ng-if="pdf.url"
tooltip="Download PDF"
tooltip-placement="bottom"
)
i.fa.fa-download
.toolbar-right
a(
href,
@@ -25,6 +25,7 @@ define [
@$scope.spellingMenu = {left: '0px', top: '0px'}
@editor.on "nativecontextmenu", (e) =>
e.domEvent.stopPropagation();
@closeContextMenu(e.domEvent)
@openContextMenu(e.domEvent)
@@ -74,6 +75,7 @@ define [
@$scope.spellingMenu.open = true
@$scope.spellingMenu.left = e.clientX + 'px'
@$scope.spellingMenu.top = e.clientY + 'px'
return false
closeContextMenu: (e) ->
@$scope.$apply () =>
@@ -11,7 +11,7 @@ define [
if attrs.infiniteScrollUpwards?
atTopOfListView()
else
atBottomOfList()
atBottomOfListView()
atTopOfListView = () ->
element.scrollTop() < 30
@@ -94,8 +94,10 @@
&.toolbar-tall {
height: 58px;
padding-top: 10px;
a.btn {
margin: 0 (@line-height-computed / 2);
}
a {
margin-left: (@line-height-computed / 2);
padding: 4px 10px 5px;
}
}