2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/agent_manager.php: fix dinamic show icon when change the select and show other icon the icon with "without status". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2424 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3b6892c709
commit
6c62d8f94f
|
@ -1,3 +1,8 @@
|
|||
2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/agent_manager.php: fix dinamic show icon when change
|
||||
the select and show other icon the icon with "without status".
|
||||
|
||||
2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* ChangeLog: I did'nt upload in previous commit the changelog.
|
||||
|
|
|
@ -220,6 +220,7 @@ $path = 'images/gis_map/icons/'; //TODO set better method the path
|
|||
|
||||
$table->data[12][0] = __('Icon agent');
|
||||
$table->data[12][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) .
|
||||
' ' . __('Without status') . ': <img id="icon_without_status" src="' . $path . $icon_path . '.png" />' .
|
||||
' ' . __('Default') . ': <img id="icon_default" src="' . $path . $icon_path . '.default.png" />' .
|
||||
' ' . __('Ok') . ': <img id="icon_ok" src="' . $path . $icon_path . '.ok.png" />' .
|
||||
' ' . __('Bad') . ': <img id="icon_bad" src="' . $path . $icon_path . '.bad.png" />' .
|
||||
|
@ -256,22 +257,25 @@ require_jquery_file ('autocomplete');
|
|||
function changeIcons() {
|
||||
icon = $("#icon_path :selected").val();
|
||||
|
||||
$("#icon_without_status").attr("src", "images/spinner.png");
|
||||
$("#icon_default").attr("src", "images/spinner.png");
|
||||
$("#icon_ok").attr("src", "images/spinner.png");
|
||||
$("#icon_bad").attr("src", "images/spinner.png");
|
||||
$("#icon_warning").attr("src", "images/spinner.png");
|
||||
|
||||
if (icon.length == 0) {
|
||||
$("#icon_without_status").attr("src", "");
|
||||
$("#icon_default").attr("src", "");
|
||||
$("#icon_ok").attr("src", "");
|
||||
$("#icon_bad").attr("src", "");
|
||||
$("#icon_warning").attr("src", "");
|
||||
}
|
||||
else {
|
||||
$("#icon_default").attr("src", "<?php echo $path; ?>" + icon + ".png");
|
||||
$("#icon_ok").attr("src", "<?php echo $path; ?>" + icon + "_ok.png");
|
||||
$("#icon_bad").attr("src", "<?php echo $path; ?>" + icon + "_bad.png");
|
||||
$("#icon_warning").attr("src", "<?php echo $path; ?>" + icon + "_warning.png");
|
||||
$("#icon_without_status").attr("src", "<?php echo $path; ?>" + icon + ".png");
|
||||
$("#icon_default").attr("src", "<?php echo $path; ?>" + icon + ".default.png");
|
||||
$("#icon_ok").attr("src", "<?php echo $path; ?>" + icon + ".ok.png");
|
||||
$("#icon_bad").attr("src", "<?php echo $path; ?>" + icon + ".bad.png");
|
||||
$("#icon_warning").attr("src", "<?php echo $path; ?>" + icon + ".warning.png");
|
||||
}
|
||||
|
||||
//$("#icon_default").attr("src", "<?php echo $path; ?>" + icon +
|
||||
|
|
Loading…
Reference in New Issue