Skip to content
Browse files

Cloning addChartForm duplicated whole set of inner elements, further …

…breaking add chart functionality
  • Loading branch information...
1 parent 6b9767c commit 19953410d0ac7f2168f30407ee347c2ef3b5bc33 @zixtor zixtor committed Feb 4, 2013
Showing with 2 additions and 3 deletions.
  1. +1 −2 js/server_status_monitor.js
  2. +1 −1 server_status_monitor.php
View
3 js/server_status_monitor.js
@@ -28,8 +28,7 @@ AJAX.registerOnload('server_status_monitor.js', function() {
$('<div />')
.attr('id', 'emptyDialog')
.appendTo('#page_content');
- $('#addChartForm').clone()
- .attr('id', 'addChartDialog')
+ $('#addChartDialog')
.appendTo('#page_content');
$('a.popupLink').click( function() {
View
2 server_status_monitor.php
@@ -603,7 +603,7 @@ function getPrintMonitorHtml($ServerStatusData)
}
$retval .= '</div>';
- $retval .= '<div id="addChartForm" title="' . __('Add chart') . '" style="display:none;">';
+ $retval .= '<div id="addChartDialog" title="' . __('Add chart') . '" style="display:none;">';
$retval .= '<div id="tabGridVariables">';
$retval .= '<p><input type="text" name="chartTitle" value="' . __('Chart Title') . '" /></p>';
$retval .= '<input type="radio" name="chartType" value="preset" id="chartPreset" />';

0 comments on commit 1995341

Please sign in to comment.
Something went wrong with that request. Please try again.