mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #4713 from GogoVega/add-missing-sidebar-tooltips
Add missing tooltips to Sidebar
This commit is contained in:
commit
ca33d6b799
@ -719,6 +719,7 @@
|
|||||||
"nodeHelp": "Node Help",
|
"nodeHelp": "Node Help",
|
||||||
"showHelp": "Show help",
|
"showHelp": "Show help",
|
||||||
"showInOutline": "Show in outline",
|
"showInOutline": "Show in outline",
|
||||||
|
"hideTopics": "Hide topics",
|
||||||
"showTopics": "Show topics",
|
"showTopics": "Show topics",
|
||||||
"noHelp": "No help topic selected",
|
"noHelp": "No help topic selected",
|
||||||
"changeLog": "Change Log"
|
"changeLog": "Change Log"
|
||||||
|
@ -719,6 +719,7 @@
|
|||||||
"nodeHelp": "Aide sur les noeuds",
|
"nodeHelp": "Aide sur les noeuds",
|
||||||
"showHelp": "Afficher l'aide",
|
"showHelp": "Afficher l'aide",
|
||||||
"showInOutline": "Afficher dans les grandes lignes",
|
"showInOutline": "Afficher dans les grandes lignes",
|
||||||
|
"hideTopics": "Masquer les sujets",
|
||||||
"showTopics": "Afficher les sujets",
|
"showTopics": "Afficher les sujets",
|
||||||
"noHelp": "Aucune rubrique d'aide sélectionnée",
|
"noHelp": "Aucune rubrique d'aide sélectionnée",
|
||||||
"changeLog": "Journal des modifications"
|
"changeLog": "Journal des modifications"
|
||||||
|
@ -382,9 +382,11 @@ RED.sidebar.config = (function() {
|
|||||||
refreshConfigNodeList();
|
refreshConfigNodeList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
RED.popover.tooltip($('#red-ui-sidebar-config-filter-all'), RED._("sidebar.config.showAllConfigNodes"));
|
RED.popover.tooltip($('#red-ui-sidebar-config-filter-all'), RED._("sidebar.config.showAllConfigNodes"));
|
||||||
RED.popover.tooltip($('#red-ui-sidebar-config-filter-unused'), RED._("sidebar.config.showAllUnusedConfigNodes"));
|
RED.popover.tooltip($('#red-ui-sidebar-config-filter-unused'), RED._("sidebar.config.showAllUnusedConfigNodes"));
|
||||||
|
RED.popover.tooltip($('#red-ui-sidebar-config-collapse-all'), RED._("palette.actions.collapse-all"));
|
||||||
|
RED.popover.tooltip($('#red-ui-sidebar-config-expand-all'), RED._("palette.actions.expand-all"));
|
||||||
}
|
}
|
||||||
|
|
||||||
function flashConfigNode(el) {
|
function flashConfigNode(el) {
|
||||||
|
@ -36,7 +36,13 @@ RED.sidebar.help = (function() {
|
|||||||
toolbar = $("<div>", {class:"red-ui-sidebar-header red-ui-info-toolbar"}).appendTo(content);
|
toolbar = $("<div>", {class:"red-ui-sidebar-header red-ui-info-toolbar"}).appendTo(content);
|
||||||
$('<span class="button-group"><a id="red-ui-sidebar-help-show-toc" class="red-ui-button red-ui-button-small selected" href="#"><i class="fa fa-list-ul"></i></a></span>').appendTo(toolbar)
|
$('<span class="button-group"><a id="red-ui-sidebar-help-show-toc" class="red-ui-button red-ui-button-small selected" href="#"><i class="fa fa-list-ul"></i></a></span>').appendTo(toolbar)
|
||||||
var showTOCButton = toolbar.find('#red-ui-sidebar-help-show-toc')
|
var showTOCButton = toolbar.find('#red-ui-sidebar-help-show-toc')
|
||||||
RED.popover.tooltip(showTOCButton,RED._("sidebar.help.showTopics"));
|
RED.popover.tooltip(showTOCButton, function () {
|
||||||
|
if ($(showTOCButton).hasClass('selected')) {
|
||||||
|
return RED._("sidebar.help.hideTopics");
|
||||||
|
} else {
|
||||||
|
return RED._("sidebar.help.showTopics");
|
||||||
|
}
|
||||||
|
});
|
||||||
showTOCButton.on("click",function(e) {
|
showTOCButton.on("click",function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if ($(this).hasClass('selected')) {
|
if ($(this).hasClass('selected')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user