start porting Replication to jQuery

This commit is contained in:
Marc Delisle
2010-04-02 18:57:28 -04:00
parent f32e8001e2
commit 5c26356379
4 changed files with 28 additions and 16 deletions

25
js/replication.js Normal file
View File

@@ -0,0 +1,25 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* for server_replication.php
*
*/
$(document).ready(function() {
$('#master_status_href').click(function() {
$('#replication_master_section').toggle();
});
$('#master_slaves_href').click(function() {
$('#replication_slaves_section').toggle();
});
$('#slave_status_href').click(function() {
$('#replication_slave_section').toggle();
});
$('#slave_control_href').click(function() {
$('#slave_control_gui').toggle();
});
$('#slave_errormanagement_href').click(function() {
$('#slave_errormanagement_gui').toggle();
});
$('#slave_synchronization_href').click(function() {
$('#slave_synchronization_gui').toggle();
});
});