Skip to content

Commit 8577a01

Browse files
committed
more
1 parent 3309c49 commit 8577a01

6 files changed

Lines changed: 18 additions & 25 deletions

File tree

public/assets/templates.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/javascripts/DV/helpers/construction.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ DV._.extend(DV.Schema.helpers, {
210210
var showSearch = (this.viewer.options.search !== false) &&
211211
(this.viewer.options.text !== false) &&
212212
(!this.viewer.options.width || this.viewer.options.width >= 540);
213-
var noFooter = (!showAnnotations && !showPages && !showSearch && !this.viewer.options.sidebarVisible);
214-
215213

216214
// Hide annotations, if there are none:
217215
var $annotationsView = this.viewer.$('.DV-annotationView');
@@ -254,20 +252,16 @@ DV._.extend(DV.Schema.helpers, {
254252
this.viewer.$('.DV-navControlsContainer').html(navControls);
255253
}
256254

257-
this.viewer.$('.DV-fullscreenControl').remove();
258255
if (this.viewer.schema.document.canonicalURL) {
259256
var fullscreenControl = JST.fullscreenControl({});
260-
if (noFooter) {
261-
this.viewer.$('.DV-collapsibleControls').prepend(fullscreenControl);
262-
this.elements.viewer.addClass('DV-hideFooter');
263-
} else {
264-
this.viewer.$('.DV-fullscreenContainer').html(fullscreenControl);
265-
}
257+
this.viewer.$('.DV-fullscreenContainer').html(fullscreenControl);
266258
}
267259

268-
this.viewer.elements.viewer.toggleClass('DV-hideSidebar', !this.viewer.options.sidebarVisible);
269-
this.viewer.elements.viewer.toggleClass('DV-mini', !this.viewer.options.sidebarVisible);
270-
this.viewer.elements.viewer.toggleClass('DV-supermini', this.viewer.elements.viewer.width() < 500);
260+
var v = this.viewer.elements.viewer;
261+
v.toggleClass('DV-hideSidebar', !this.viewer.options.sidebarVisible);
262+
v.toggleClass('DV-mini', !this.viewer.options.sidebarVisible);
263+
v.toggleClass('DV-supermini', this.viewer.elements.viewer.width() < 500);
264+
v.toggleClass('DV-hideFooter', this.viewer.options.sidebarVisible);
271265

272266
// Set the currentPage element reference.
273267
this.elements.currentPage = this.viewer.$('span.DV-currentPage');

public/javascripts/DV/helpers/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ DV.Schema.helpers = {
3434

3535

3636
var states = context.states;
37-
viewer.$('.DV-navControls').delegate('span.DV-next','click', compiled.next);
38-
viewer.$('.DV-navControls').delegate('span.DV-previous','click', compiled.previous);
37+
viewer.elements.viewer.delegate('.DV-next','click', compiled.next);
38+
viewer.elements.viewer.delegate('.DV-previous','click', compiled.previous);
3939

4040
viewer.$('.DV-annotationView').delegate('.DV-trigger','click',function(e){
4141
e.preventDefault();
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<% if (!options.sidebarVisible) { %>
2-
<div class="DV-footer">
3-
<div class="DV-fullscreenContainer"></div>
4-
<div class="DV-navControlsContainer"></div>
5-
</div>
6-
<% } %>
1+
<div class="DV-footer">
2+
<div class="DV-fullscreenContainer"></div>
3+
<div class="DV-navControlsContainer"></div>
4+
</div>

public/stylesheets/DV/components/minimode.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
width: 80px;
1818
}
1919

20+
.DV-mini .DV-searchDocument .DV-searchInput-cancel {
21+
top: 7px;
22+
}
23+
2024
/* ================== */
2125
/* = Page Container = */
2226
/* ================== */

public/stylesheets/DV/components/ui-search.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,13 @@
6868
visibility: hidden;
6969
position: absolute;
7070
right: 17px;
71-
top: 10px;
71+
top: 8px;
7272
background: transparent url(../../../images/DV/embed/close.png) no-repeat 0 0;
7373
width: 11px;
7474
height: 11px;
7575
cursor: pointer;
7676
z-index: 5;
7777
}
78-
.DV-ie .DV-searchDocument .DV-searchInput-cancel {
79-
top: 7px;
80-
}
8178

8279
.DV-searchDocument .DV-searchInputWrap.DV-searchInput-show-search-cancel .DV-searchInput-cancel {
8380
visibility: visible;

0 commit comments

Comments
 (0)