Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cloning addChartForm duplicated whole set of inner elements, further …
…breaking add chart functionality
  • Loading branch information
atul516 committed Feb 4, 2013
1 parent 6b9767c commit 1995341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions js/server_status_monitor.js
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion server_status_monitor.php
Expand Up @@ -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" />';
Expand Down

0 comments on commit 1995341

Please sign in to comment.