source: extensions/database_migration/js/admin.js @ 11360

Last change on this file since 11360 was 6222, checked in by nikrou, 14 years ago

Database migration plugin : first public version

File size: 773 bytes
Line 
1$(function() {
2    $('a.confirm').
3      click(function() {
4          if (!confirm($(this).attr('title'))) {
5            return false;
6          }
7        });
8   
9    $option_selected = $('#dblayer').attr('value');
10    if ($option_selected=='sqlite' || $option_selected=='pdo-sqlite') {
11       $('input[name=db_host],input[name=db_user],input[name=db_password]').parent().parent().hide();
12    }
13
14    $('#dblayer').change(function() {
15        $db = this;
16        if ($db.value=='sqlite' || $db.value=='pdo-sqlite') {
17           $('input[name=db_host],input[name=db_user],input[name=db_password]').parent().parent().hide();
18        } else {
19           $('input[name=db_host],input[name=db_user],input[name=db_password]').parent().parent().show();
20        }
21      });
22
23  });
Note: See TracBrowser for help on using the repository browser.