2011-02-22 Sancho Lerena <slerena@artica.es>

* include/functions_extensions.php: Extension menu entries text not
	being stripped.

	* operation/menu.php: Extension menu entries for visualconsole a bit
	wider.

	* godmode/reporting/visual_console_builder.data.php: Show a hint on
	first letter of Visualconsole map to put the name in the menu.
	Shortened input box, to avoid people enter long names and later be
	cutted off.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3977 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-02-22 11:31:39 +00:00
parent 0265bfd60d
commit c2a1447bec
4 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,16 @@
2011-02-22 Sancho Lerena <slerena@artica.es>
* include/functions_extensions.php: Extension menu entries text not
being stripped.
* operation/menu.php: Extension menu entries for visualconsole a bit
wider.
* godmode/reporting/visual_console_builder.data.php: Show a hint on
first letter of Visualconsole map to put the name in the menu.
Shortened input box, to avoid people enter long names and later be
cutted off.
2011-02-22 Sancho Lerena <slerena@artica.es> 2011-02-22 Sancho Lerena <slerena@artica.es>
* include/streams.php: Fixed bug 3184746. * include/streams.php: Fixed bug 3184746.

View File

@ -44,8 +44,9 @@ switch ($action) {
$table->width = '70%'; $table->width = '70%';
$table->data = array (); $table->data = array ();
$table->data[0][0] = __('Name:'); $table->data[0][0] = __('Name:'). print_help_tip (__("Use [ or ( as first character, for example '[*] Map name', to render this map name in main menu"), true);
$table->data[0][1] = print_input_text ('name', $visualConsoleName, '', 15, 50, true);
$table->data[0][1] = print_input_text ('name', $visualConsoleName, '', 21, 30, true);
$table->data[1][0] = __('Group:'); $table->data[1][0] = __('Group:');
$groups = get_user_groups ($config['id_user']); $groups = get_user_groups ($config['id_user']);

View File

@ -297,7 +297,8 @@ function add_operation_menu_option ($name, $fatherId = null, $icon = null) {
/* $config['extension_file'] is set in load_extensions(), since that function must /* $config['extension_file'] is set in load_extensions(), since that function must
be called before any function the extension call, we are sure it will be called before any function the extension call, we are sure it will
be set. */ be set. */
$option_menu['name'] = mb_substr ($name, 0, 15); $option_menu['name'] = $name;
$extension = &$config['extensions'][$extension_file]; $extension = &$config['extensions'][$extension_file];
$option_menu['sec2'] = $extension['dir'].'/'.mb_substr ($extension_file, 0, -4); $option_menu['sec2'] = $extension['dir'].'/'.mb_substr ($extension_file, 0, -4);
$option_menu['fatherId'] = $fatherId; $option_menu['fatherId'] = $fatherId;
@ -321,7 +322,7 @@ function add_godmode_menu_option ($name, $acl, $fatherId = null, $icon = null) {
be called before any function the extension call, we are sure it will be called before any function the extension call, we are sure it will
be set. */ be set. */
$option_menu['acl'] = $acl; $option_menu['acl'] = $acl;
$option_menu['name'] = mb_substr ($name, 0, 15); $option_menu['name'] = $name;
$extension = &$config['extensions'][$extension_file]; $extension = &$config['extensions'][$extension_file];
$option_menu['sec2'] = $extension['dir'].'/'.mb_substr ($extension_file, 0, -4); $option_menu['sec2'] = $extension['dir'].'/'.mb_substr ($extension_file, 0, -4);
$option_menu['fatherId'] = $fatherId; $option_menu['fatherId'] = $fatherId;

View File

@ -122,7 +122,7 @@ if (give_acl ($config['id_user'], 0, "AR")) {
if (!in_array($firstLetter, $firstLetterNameVisualToShow)) { if (!in_array($firstLetter, $firstLetterNameVisualToShow)) {
continue; continue;
} }
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["text"] = mb_substr ($name, 0, 15); $sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["text"] = mb_substr ($name, 0, 19);
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["title"] = $name; $sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["title"] = $name;
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["refr"] = 0; $sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["refr"] = 0;
} }