Tooltip
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
c4cce14134
commit
872b866a69
|
@ -903,7 +903,7 @@ table.dragshadow td.size {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Grid view toggle */
|
/* Grid view toggle */
|
||||||
.view-toggle {
|
#view-toggle {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -330,6 +330,7 @@
|
||||||
// Toggle for grid view
|
// Toggle for grid view
|
||||||
this.$showGridView = $('input#showgridview');
|
this.$showGridView = $('input#showgridview');
|
||||||
this.$showGridView.on('change', _.bind(this._onGridviewChange, this));
|
this.$showGridView.on('change', _.bind(this._onGridviewChange, this));
|
||||||
|
$('#view-toggle').tooltip({placement: 'bottom'});
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
|
value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
|
||||||
<input type="checkbox" class="hidden" id="showgridview"
|
<input type="checkbox" class="hidden" id="showgridview"
|
||||||
<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
|
<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
|
||||||
<label id="view-toggle" for="showgridview" class="button view-toggle <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?> has-tooltip" title="<?php p($l->t('Toggle grid view'))?>"></label>
|
<label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>" title="<?php p($l->t('Toggle grid view'))?>"></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="emptycontent" class="hidden">
|
<div id="emptycontent" class="hidden">
|
||||||
|
|
Loading…
Reference in New Issue