Rev 320 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 320 | Rev 360 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | action:"config_update", |
24 | action:"config_update", |
25 | name:name, |
25 | name:name, |
26 | value:document.getElementById('config_'+name).value, |
26 | value:document.getElementById('config_'+name).value, |
27 | }, |
27 | }, |
28 | error:function(jqXHR, textStatus, errorThrown) { |
28 | error:function(jqXHR, textStatus, errorThrown) { |
29 | alert("Error: " + errorThrown); |
29 | alert(_L("Error: %1",errorThrown)); |
30 | }, |
30 | }, |
31 | success:function(data) { |
31 | success:function(data) { |
32 | if ("error" in data) { |
32 | if ("error" in data) { |
33 | alert("Error: " + data.error); |
33 | alert(_L("Error: %1",data.error)); |
34 | } else if (data.status == 0) { |
34 | } else if (data.status == 0) { |
35 | alert("Update OK"); |
35 | alert(_L("Update OK")); |
36 | } else { |
36 | } else { |
37 | alert("Error: " + data); |
37 | alert(_L("Error: %1",data)); |
38 | } |
38 | } |
39 | } |
39 | } |
40 | }); |
40 | }); |
41 | } |
41 | } |
42 | - |