Commit 3a59e5f6 by tarokkk

webui: VM popup strong tag on name

parent a35c44b6
...@@ -135,7 +135,7 @@ $(function() { ...@@ -135,7 +135,7 @@ $(function() {
*/ */
function stop_vm(id, name) { function stop_vm(id, name) {
confirm_message = interpolate(gettext("Are you sure stopping %s?"), [name]) confirm_message = interpolate(gettext("Are you sure stopping %s?"), ["<strong>"+name+"</strong>"])
vm_confirm_popup(confirm_message, gettext("Stop"), function() { vm_confirm_popup(confirm_message, gettext("Stop"), function() {
manage_vm(id, "stop") manage_vm(id, "stop")
}); });
...@@ -145,7 +145,7 @@ $(function() { ...@@ -145,7 +145,7 @@ $(function() {
*/ */
function delete_vm(id, name) { function delete_vm(id, name) {
confirm_message = interpolate(gettext("Are you sure deleting %s?"), [name]) confirm_message = interpolate(gettext("Are you sure deleting %s?"), ["<strong>"+name+"</strong>"])
vm_confirm_popup(confirm_message, gettext("Delete"), function() { vm_confirm_popup(confirm_message, gettext("Delete"), function() {
manage_vm(id, "delete") manage_vm(id, "delete")
}) })
...@@ -155,7 +155,7 @@ $(function() { ...@@ -155,7 +155,7 @@ $(function() {
*/ */
function restart_vm(id, name) { function restart_vm(id, name) {
confirm_message = interpolate(gettext("Are you sure restarting %s?"), [name]) confirm_message = interpolate(gettext("Are you sure restarting %s?"), ["<strong>"+name+"</strong>"])
vm_confirm_popup(confirm_message, gettext("Restart"), function() { vm_confirm_popup(confirm_message, gettext("Restart"), function() {
manage_vm(id, "restart") manage_vm(id, "restart")
}) })
...@@ -190,7 +190,7 @@ $(function() { ...@@ -190,7 +190,7 @@ $(function() {
* Template delete * Template delete
*/ */
function delete_template_confirm(id, name) { function delete_template_confirm(id, name) {
confirm_message = interpolate(gettext("Are you sure deleting this %s template?"), [name]) confirm_message = interpolate(gettext("Are you sure deleting this %s template?"), ["<strong>"+name+"</strong>"])
vm_confirm_popup(confirm_message, gettext("Delete"), function() { vm_confirm_popup(confirm_message, gettext("Delete"), function() {
delete_template(id) delete_template(id)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment