Revision 2566:9bf417837888,
1.1 KB
checked in by franck <carnet.franck.paul@…>, 12 years ago
(diff) |
Add some people in CREDITS, remove trailing spaces and tabs.
|
Line | |
---|
1 | $(function(){ |
---|
2 | $('.step-box').each(function(){ |
---|
3 | var code = $('input[name=code]',this).val(); |
---|
4 | |
---|
5 | $('.step-submit',this).remove(); |
---|
6 | $('.step-back',this).hide(); |
---|
7 | $('.step-msg',this).after( |
---|
8 | $('<p>').addClass('step-wait').text( |
---|
9 | dotclear.msg.wait |
---|
10 | ) |
---|
11 | ); |
---|
12 | |
---|
13 | dcMaintenanceStep(this,code); |
---|
14 | |
---|
15 | function dcMaintenanceStep(box,code) { |
---|
16 | var params = { |
---|
17 | f: 'dcMaintenanceStep', |
---|
18 | xd_check: dotclear.nonce, |
---|
19 | task: $(box).attr('id'), |
---|
20 | code: code |
---|
21 | } |
---|
22 | $.post('services.php',params,function(data) { |
---|
23 | if ($('rsp[status=failed]',data).length > 0) { |
---|
24 | $('.step-msg',box).text( |
---|
25 | $('rsp',data).text() |
---|
26 | ); |
---|
27 | $('.step-wait',box).remove(); |
---|
28 | $('.step-back',box).show(); |
---|
29 | } else { |
---|
30 | $('.step-msg',box).text( |
---|
31 | $('rsp>step',data).attr('title') |
---|
32 | ); |
---|
33 | var code = $('rsp>step',data).attr('code'); |
---|
34 | if (code > 0){ |
---|
35 | dcMaintenanceStep(box,code); |
---|
36 | } else { |
---|
37 | $('#content h2').after($('<div/>').addClass('success').append($('.step-msg',box))); |
---|
38 | $('.step-wait',box).remove(); |
---|
39 | $('.step-back',box).show(); |
---|
40 | } |
---|
41 | } |
---|
42 | }); |
---|
43 | } |
---|
44 | }); |
---|
45 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.