Last change
on this file since 31142 was
16007,
checked in by grum, 12 years ago
|
feature:2637- compatibility with Piwigo 2.4
|
File size:
1.5 KB
|
Line | |
---|
1 | |
---|
2 | {literal} |
---|
3 | <script type="text/javascript"> |
---|
4 | |
---|
5 | function submitForm() |
---|
6 | { |
---|
7 | $('#btSubmit').css('display', 'none'); |
---|
8 | $('#iImgWait').css('display', 'block'); |
---|
9 | |
---|
10 | if($('#iInterfaceModeB').get(0).checked) |
---|
11 | { |
---|
12 | interfaceMode='basic'; |
---|
13 | } |
---|
14 | else |
---|
15 | { |
---|
16 | interfaceMode='advanced'; |
---|
17 | } |
---|
18 | |
---|
19 | $.ajax( |
---|
20 | { |
---|
21 | type: "POST", |
---|
22 | url: "{/literal}{$urlRequest}{literal}", |
---|
23 | async: true, |
---|
24 | data: { ajaxfct:"admin.install.chooseInterface", token:'{/literal}{$token}{literal}', interfaceMode:interfaceMode }, |
---|
25 | success: |
---|
26 | function(msg) |
---|
27 | { |
---|
28 | window.location=document.URL; //just reload the page... |
---|
29 | } |
---|
30 | } |
---|
31 | ); |
---|
32 | |
---|
33 | } |
---|
34 | |
---|
35 | </script> |
---|
36 | {/literal} |
---|
37 | |
---|
38 | <form id="iSteps" method="post" action="" class="general"> |
---|
39 | |
---|
40 | <fieldset id="iStep1"> |
---|
41 | <legend>{'g003_step_1'|@translate}</legend> |
---|
42 | |
---|
43 | <p>{$help.Step1}</p> |
---|
44 | |
---|
45 | <ul style='list-style:none;'> |
---|
46 | |
---|
47 | <li> |
---|
48 | <label><input type="radio" name="f_interfaceMode" id="iInterfaceModeB" value="basic" checked> {'g003_basic_mode'|@translate}</label><br> |
---|
49 | {$help.g003_basic_mode_help}<br> |
---|
50 | </li> |
---|
51 | <li> |
---|
52 | <label><input type="radio" name="f_interfaceMode" id="iInterfaceModeA" value="advanced"> {'g003_advanced_mode'|@translate}</label><br> |
---|
53 | {$help.g003_advanced_mode_help} |
---|
54 | </li> |
---|
55 | </ul> |
---|
56 | |
---|
57 | |
---|
58 | </fieldset> |
---|
59 | |
---|
60 | <input id='btSubmit' type="button" onclick='submitForm();' value="{'g003_validate'|@translate}"> |
---|
61 | <img id='iImgWait' src='./plugins/GrumPluginClasses/icons/processing.gif' style='display:none;margin-left:40px;'> |
---|
62 | |
---|
63 | </form> |
---|
64 | |
---|
65 | |
---|
Note: See
TracBrowser
for help on using the repository browser.