From 4f9f8d2449dc42096864b5cbaa38a9a346277516 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Tue, 23 Jun 2015 12:07:18 +0200 Subject: [PATCH] Fixed the title of the locked button dialog --- pandora_console/godmode/servers/plugin.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 22d84026cc..70dcd24d5e 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -712,7 +712,7 @@ else { 'tnetwork_component', array('id_plugin' => $row["id"])); if (($components_using_plugin + $modules_using_plugin) > 0) { - echo ""; + echo ''; html_print_image('images/lock.png'); echo ""; } @@ -739,8 +739,9 @@ else { echo ""; echo ""; + // The '%s' will be replaced in the javascript code of the function 'show_locked_dialog' echo ""; @@ -784,7 +785,7 @@ ui_require_javascript_file('pandora_modules'); }); - function show_locked_dialog(id_plugin) { + function show_locked_dialog(id_plugin, plugin_name) { var parameters = {}; parameters['page'] = "godmode/servers/plugin"; parameters["get_list_modules_and_component_locked_plugin"] = 1; @@ -796,7 +797,10 @@ ui_require_javascript_file('pandora_modules'); data: parameters, dataType: "html", success: function(data) { + var title = $("#dialog_locked").prop('title').replace(/%s/, plugin_name); + $("#dialog_locked") + .prop('title', title) .html(data); $("#dialog_locked") .dialog ({