Commit cf906bb6 authored by yPhil's avatar yPhil
Browse files

Column buttons display on hover

- Class also renamed to avoid confusion
- Small update to the docs
parent a7221d10
......@@ -824,7 +824,7 @@ ul.column {
padding: var(--column-padding);
}
ul.column div.buttons {
ul.column div.colButtons {
display: var(--column-buttons-display);
border-radius: 3px;
border: 3px dashed var(--color-ui-sep);
......
......@@ -23,7 +23,7 @@ PTL.col = {
add: function(colIndex, newCol) {
const $colButtons = $('<div>')
.attr('class', 'buttons flexBox');
.attr('class', 'colButtons flexBox');
const $colLegend = $('<legend>')
.attr('class', 'colLegend legend-col unique translate')
......@@ -67,7 +67,7 @@ PTL.col = {
const $column = $(this).parent().parent(),
$feedsInCol = $column.find('.feed'),
nbOfFeedsInCol = $feedsInCol.length;
if (nbOfFeedsInCol < 1) {
PTL.col.del($column);
} else {
......@@ -131,11 +131,13 @@ PTL.col = {
}
}).disableSelection();
$colButtons.append($colLegend,
$colDelButton,
$colNewButton,
$srcLegend,
$srcNewButton);
$colButtons
.append($colLegend,
$colDelButton,
$colNewButton,
$srcLegend,
$srcNewButton)
.hide();
return $column;
}
......
......@@ -14,10 +14,7 @@ PTL.feed = {
width: '16px',
height: '16px',
onerror: "this.src='/static/images/rss.gif';"
}).on("error", function() {
console.log('this.src: %s (%s)', $(this).parent().parent().children('div.dataStore').data('iconhash'), $(this).parent().parent().children('div.dataStore').data('url'));
}).on("error", function() {
$(this).parent().parent().children('div.dataStore').data('iconhash', 'noicon');
PTL.tab.saveTabs();
});
......
......@@ -342,7 +342,7 @@ PTL.i18n.translations = {
"Reset Pétrolette with the default feeds." : { fr: "Réinitialiser Pétrolette avec les flux par défaut." , ja: "デフォルトフィードでPétroletteをリセットします。", es: "Restablecer Pétrolette con las fuentes predeterminadas." },
"Connection to the cloud to synchronize tabs and feeds on all devices." : { fr: "Connexion au cloud pour synchroniser onglets et flux sur plusieurs appareils." , ja: "すべてのデバイスでタブとソースを同期させるためのクラウドへの接続。", es: "Conexión a la nube para sincronizar las pestañas y las fuentes en todos sus dispositivos。" },
"Connection to the cloud to synchronize tabs and feeds on all devices." : { fr: "Connexion au nuage pour synchroniser onglets et flux sur plusieurs appareils." , ja: "すべてのデバイスでタブとソースを同期させるためのクラウドへの接続。", es: "Conexión a la nube para sincronizar las pestañas y las fuentes en todos sus dispositivos。" },
"Preferred Search engine for building search feeds." : { fr: "Moteur de recherche préféré pour la construction de sources de recherche." , ja: "検索ソースを構築するための好ましい検索エンジン。", es: "Motor de búsqueda preferido para la construcción de fuentes de búsqueda." },
......
......@@ -92,6 +92,15 @@ var PTL = (function() {
}));
});
$(document).on({
mouseenter: function() {
$(this).find('.colButtons').show();
},
mouseleave: function() {
$(this).find('.colButtons').hide();
}
}, "ul.column");
$('nav#sideMenu .sideMenuSectionToggle').click(function() {
$(this).children('i').toggleClass('unfold');
$(this).parent().next().toggle();
......
......@@ -360,12 +360,14 @@ PTL.util = {
{
title: PTL.tr('Feeds'),
element: 'fieldset.feedsMenuForm',
intro: '<h4>' + PTL.tr('Open') + '</h4>' + PTL.tr('Load / import a feeds file') + ' ; ' + PTL.tr('to append to or replace the existing feeds.') + '<h4>' + PTL.tr('Save') + '</h4>' + PTL.tr('Save / export a feeds file.') + '<h4>' + PTL.tr('Reset') + '</h4>' + PTL.tr('Reset Pétrolette with the default feeds.') + '<h4>' + PTL.tr('Connection to storage') + '</h4>' + PTL.tr('Connection to the cloud to synchronize tabs and feeds on all devices.')
intro: '<h4>' + PTL.tr('Open') + '</h4>' + PTL.tr('Load / import a feeds file') + ' ; ' + PTL.tr('to append to or replace the existing feeds.') + '<h4>' + PTL.tr('Save') + '</h4>' + PTL.tr('Save / export a feeds file.') + '<h4>' + PTL.tr('Reset') + '</h4>' + PTL.tr('Reset Pétrolette with the default feeds.') + '<h4>' + PTL.tr('Connection to storage') + '</h4>' + PTL.tr('Connection to the cloud to synchronize tabs and feeds on all devices.'),
position: 'right'
},
{
title: PTL.tr('Search prefix'),
element: 'fieldset.searchPrefixFieldset',
intro: '<h4>' + PTL.tr('Search prefix') + '</h4>' + PTL.tr('Preferred Search engine for building search feeds.') + '<h4>' + PTL.tr('Restore default') + '</h4>' + PTL.tr('Restore default search prefix') + '.'
intro: '<h4>' + PTL.tr('Search prefix') + '</h4>' + PTL.tr('Preferred Search engine for building search feeds.') + '<h4>' + PTL.tr('Restore default') + '</h4>' + PTL.tr('Restore default search prefix') + '.',
position: 'right'
}
]
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment