1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-26 09:57:23 +03:00

B #2728: button tooltips (#3759)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo 2019-09-23 16:38:41 +02:00 committed by Tino Vázquez
parent 6868b7238a
commit 1a25988948
2 changed files with 12 additions and 3 deletions

View File

@ -456,7 +456,14 @@ define(function(require) {
buttonContext = $("#" + customId + "main_buttons", buttonsRow);
text = button.text;
strClass.push("button");
buttonCode = "<button class=\"" + strClass.join(" ") + "\" href=\"" + buttonName + "\">" + text + "</button>";
options = {
class: strClass.join(" "),
href: buttonName,
}
if(button && button.tip){
options.title = button.tip;
}
buttonCode = $("<button>",options).append(text);
}
buttonContext.append(buttonCode);

View File

@ -30,11 +30,13 @@ define(function(require) {
},
"MarketPlaceApp.download_opennebula_dialog" : {
type: "action",
text: '<i class="fas fa-lg fa-cloud-download-alt"/>'
text: '<i class="fas fa-lg fa-cloud-download-alt"/>',
tip: Locale.tr('Import')
},
"MarketPlaceApp.download_local" : {
type: "action",
text: '<i class="fas fa-lg fa-download"/>'
text: '<i class="fas fa-lg fa-download"/>',
tip: Locale.tr('Download')
},
"MarketPlaceApp.chown" : {
type: "confirm_with_select",