2013-02-08 Sergio Martin <sergio.martin@artica.es>

* godmode/groups/configure_group.php: Fixed some bugs on
	the group icons in the groups form



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2013-02-08 11:45:51 +00:00
parent 31ab8c1a3f
commit 51d3057ae6
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-02-08 Sergio Martin <sergio.martin@artica.es>
* godmode/groups/configure_group.php: Fixed some bugs on
the group icons in the groups form
2013-02-08 Sergio Martin <sergio.martin@artica.es>
* godmode/servers/plugin.php: Prepare plugin manager to be used

View File

@ -47,7 +47,12 @@ if ($id_group) {
$group = db_get_row ('tgrupo', 'id_grupo', $id_group);
if ($group) {
$name = $group["nombre"];
$icon = $group["icon"].'.png';
if(empty($group["icon"])) {
$icon = false;
}
else {
$icon = $group["icon"].'.png';
}
$alerts_disabled = $group["disabled"];
$id_parent = $group["parent"];
$custom_id = $group["custom_id"];
@ -106,6 +111,7 @@ $table->data[1][1] .= ' <span id="icon_preview">';
if ($icon) {
$table->data[1][1] .= html_print_image("images/groups_small/".$icon, true);
}
$table->data[1][1] .= '</span>';
$table->data[2][0] = __('Parent');
@ -203,6 +209,9 @@ function parent_changed () {
$('#parent_preview').fadeOut ('normal', function () {
$('#parent_preview').empty ();
if (data_ != null) {
if(data['icon'] == '') {
data['icon'] = 'without_group';
}
var params = [];
params.push("get_image_path=1");
params.push("img_src=images/groups_small/" + data['icon'] + ".png");