Last change
on this file since 13880 was
6222,
checked in by nikrou, 15 years ago
|
Database migration plugin : first public version
|
File size:
485 bytes
|
Line | |
---|
1 | function onSuccess(data) { |
---|
2 | if (data.error) { |
---|
3 | $('#dm-messages').html('<p>'+data.error+'</p>').addClass('errors'); |
---|
4 | } else { |
---|
5 | $('#dm-messages').html('<p>'+data.info+'</p>').addClass('infos'); |
---|
6 | } |
---|
7 | } |
---|
8 | |
---|
9 | $(function() { |
---|
10 | $('#dm-install').click(function() { |
---|
11 | $.post($('#dm-form-import').attr('action'), |
---|
12 | {dm_key:$('#dm_key').val(),dblayer:$('#dblayer').val()}, |
---|
13 | function(data) { |
---|
14 | onSuccess(data); |
---|
15 | }, |
---|
16 | 'json' |
---|
17 | ); |
---|
18 | return false; |
---|
19 | }); |
---|
20 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.