Show view toggle in controls bar
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
parent
2a42a8da3e
commit
e704899e22
3 changed files with 22 additions and 2 deletions
|
@ -866,3 +866,22 @@ table.dragshadow td.size {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Grid view toggle */
|
||||||
|
.view-toggle {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 22px;
|
||||||
|
opacity: .5;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide legacy Gallery toggle */
|
||||||
|
#gallery-button {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
|
@ -328,7 +328,7 @@
|
||||||
this.$el.find('thead th .columntitle').click(_.bind(this._onClickHeader, this));
|
this.$el.find('thead th .columntitle').click(_.bind(this._onClickHeader, this));
|
||||||
|
|
||||||
// Toggle for grid view
|
// Toggle for grid view
|
||||||
$('#view-button').on('click', this._onGridToggle);
|
$('#view-toggle').on('click', this._onGridToggle);
|
||||||
|
|
||||||
this._onResize = _.debounce(_.bind(this._onResize, this), 250);
|
this._onResize = _.debounce(_.bind(this._onResize, this), 250);
|
||||||
$('#app-content').on('appresized', this._onResize);
|
$('#app-content').on('appresized', this._onResize);
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<input type="hidden" class="max_human_file_size"
|
<input type="hidden" class="max_human_file_size"
|
||||||
value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
|
value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
|
||||||
|
<button id="view-toggle" class="button view-toggle icon-toggle-pictures has-tooltip" title="<?php p($l->t('Toggle grid view'))?>"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="emptycontent" class="hidden">
|
<div id="emptycontent" class="hidden">
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table id="filestable" class="view-grid" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="250" data-preview-y="250">
|
<table id="filestable" class="list-container view-grid" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="250" data-preview-y="250">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th id="headerSelection" class="hidden column-selection">
|
<th id="headerSelection" class="hidden column-selection">
|
||||||
|
|
Loading…
Reference in a new issue