2010-10-25 Raúl Mateos <raulofpandora@gmail.com>
* images/control*.png: Added two small images for sound control in setup. * godmode/setup/setup.php: Use added images. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3455 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
62b3005c43
commit
f43f25cf7b
|
@ -1,3 +1,9 @@
|
|||
2010-10-25 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* images/control*.png: Added two small images for sound control in setup.
|
||||
|
||||
* godmode/setup/setup.php: Use added images.
|
||||
|
||||
2010-10-25 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* godmode/agentes/module_manager_editor_network.php: Added enterprise
|
||||
|
|
|
@ -111,33 +111,33 @@ $table->data[19][1] = print_input_text ('timezone', $config["timezone"], '', 25,
|
|||
$sounds = get_sounds();
|
||||
$table->data[20][0] = __('Sound for Alert fired');
|
||||
$table->data[20][1] = print_select($sounds, 'sound_alert', $config['sound_alert'], 'replaySound(\'alert\');', '', '', true);
|
||||
$table->data[20][1] .= ' <a href="javascript: toggleButton(\'alert\');"><img id="button_sound_alert" style="vertical-align: middle;" src="images/play.button.png" width="20" /></a>';
|
||||
$table->data[20][1] .= ' <a href="javascript: toggleButton(\'alert\');"><img id="button_sound_alert" style="vertical-align: middle;" src="images/control_play.png" width="16" /></a>';
|
||||
$table->data[20][1] .= '<div id="layer_sound_alert"></div>';
|
||||
|
||||
$table->data[21][0] = __('Sound for Monitor critical');
|
||||
$table->data[21][1] = print_select($sounds, 'sound_critical', $config['sound_critical'], 'replaySound(\'critical\');', '', '', true);
|
||||
$table->data[21][1] .= ' <a href="javascript: toggleButton(\'critical\');"><img id="button_sound_critical" style="vertical-align: middle;" src="images/play.button.png" width="20" /></a>';
|
||||
$table->data[21][1] .= ' <a href="javascript: toggleButton(\'critical\');"><img id="button_sound_critical" style="vertical-align: middle;" src="images/control_play.png" width="16" /></a>';
|
||||
$table->data[21][1] .= '<div id="layer_sound_critical"></div>';
|
||||
|
||||
$table->data[22][0] = __('Sound for Monitor warning');
|
||||
$table->data[22][1] = print_select($sounds, 'sound_warning', $config['sound_warning'], 'replaySound(\'warning\');', '', '', true);
|
||||
$table->data[22][1] .= ' <a href="javascript: toggleButton(\'warning\');"><img id="button_sound_warning" style="vertical-align: middle;" src="images/play.button.png" width="20" /></a>';
|
||||
$table->data[22][1] .= ' <a href="javascript: toggleButton(\'warning\');"><img id="button_sound_warning" style="vertical-align: middle;" src="images/control_play.png" width="16" /></a>';
|
||||
$table->data[22][1] .= '<div id="layer_sound_warning"></div>';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function toggleButton(type) {
|
||||
if ($("#button_sound_" + type).attr('src') == 'images/pause.button.png') {
|
||||
$("#button_sound_" + type).attr('src', 'images/play.button.png');
|
||||
if ($("#button_sound_" + type).attr('src') == 'images/control_pause.png') {
|
||||
$("#button_sound_" + type).attr('src', 'images/control_play.png');
|
||||
$('#layer_sound_' + type).html("");
|
||||
}
|
||||
else {
|
||||
$("#button_sound_" + type).attr('src', 'images/pause.button.png');
|
||||
$("#button_sound_" + type).attr('src', 'images/control_pause.png');
|
||||
$('#layer_sound_' + type).html("<embed src='" + $("#sound_" + type).val() + "' autostart='true' hidden='true' loop='true'>");
|
||||
}
|
||||
}
|
||||
|
||||
function replaySound(type) {
|
||||
if ($("#button_sound_" + type).attr('src') == 'images/pause.button.png') {
|
||||
if ($("#button_sound_" + type).attr('src') == 'images/control_pause.png') {
|
||||
$('#layer_sound_' + type).html("");
|
||||
$('#layer_sound_' + type).html("<embed src='" + $("#sound_" + type).val() + "' autostart='true' hidden='true' loop='true'>");
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 721 B |
Binary file not shown.
After Width: | Height: | Size: 717 B |
Loading…
Reference in New Issue