diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-02-16 18:22:42 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-02-16 18:22:42 +0400 |
commit | 86073d532aed656550cb731aa5b4288b126ae7a6 (patch) | |
tree | 3090bfb2e3c8cc013f7bf3a34de461c740e21ff9 /js/replication.js | |
parent | e8a12582f9fc7737a6346e26ec9c5de01ced8d52 (diff) |
Do not put database names as html
Diffstat (limited to 'js/replication.js')
-rw-r--r-- | js/replication.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/replication.js b/js/replication.js index 1a7c785b03..3ea119a97f 100644 --- a/js/replication.js +++ b/js/replication.js @@ -5,7 +5,7 @@ */ var random_server_id = Math.floor(Math.random() * 10000000); -var conf_prefix = "server-id=" + random_server_id + "<br />log-bin=mysql-bin<br />log-error=mysql-bin.err<br />"; +var conf_prefix = "server-id=" + random_server_id + "\nlog-bin=mysql-bin\nlog-error=mysql-bin.err\n"; function update_config() { var conf_ignore = "binlog_ignore_db="; @@ -16,16 +16,16 @@ function update_config() { }); if ($('#db_select option:selected').size() == 0) { - $('#rep').html(conf_prefix); + $('#rep').text(conf_prefix); } else if ($('#db_type option:selected').val() == 'all') { - $('#rep').html(conf_prefix + conf_ignore + database_list); + $('#rep').text(conf_prefix + conf_ignore + database_list); } else { - $('#rep').html(conf_prefix + conf_do + database_list); + $('#rep').text(conf_prefix + conf_do + database_list); } } $(document).ready(function() { - $('#rep').html(conf_prefix); + $('#rep').text(conf_prefix); $('#db_type').change(update_config); $('#db_select').change(update_config); |