Rev 642 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 642 | Rev 833 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | 19 | ||
20 | oid: "1.3.6.1.4.1.37476.2.5.2.4.3.120", |
20 | oid: "1.3.6.1.4.1.37476.2.5.2.4.3.120", |
21 | 21 | ||
22 | crudActionRegPrivacyUpdate: function(name) { |
22 | crudActionRegPrivacyUpdate: function(name) { |
23 | if (typeof OIDplusPageAdminSystemConfig == "undefined") { |
23 | if (typeof OIDplusPageAdminSystemConfig == "undefined") { |
24 | alert(_L("System configuration plugin is not installed.")); |
24 | alertError(_L("System configuration plugin is not installed.")); |
25 | return; |
25 | return; |
26 | } |
26 | } |
27 | 27 | ||
28 | $.ajax({ |
28 | $.ajax({ |
29 | url:"ajax.php", |
29 | url:"ajax.php", |
Line 42... | Line 42... | ||
42 | name: 'reg_privacy', |
42 | name: 'reg_privacy', |
43 | value: $("#reg_privacy")[0].value, |
43 | value: $("#reg_privacy")[0].value, |
44 | }, |
44 | }, |
45 | error:function(jqXHR, textStatus, errorThrown) { |
45 | error:function(jqXHR, textStatus, errorThrown) { |
46 | if (errorThrown == "abort") return; |
46 | if (errorThrown == "abort") return; |
47 | alert(_L("Error: %1",errorThrown)); |
47 | alertError(_L("Error: %1",errorThrown)); |
48 | }, |
48 | }, |
49 | success:function(data) { |
49 | success:function(data) { |
50 | if ("error" in data) { |
50 | if ("error" in data) { |
51 | alert(_L("Error: %1",data.error)); |
51 | alertError(_L("Error: %1",data.error)); |
52 | } else if (data.status >= 0) { |
52 | } else if (data.status >= 0) { |
53 | alert(_L("Update OK")); |
53 | alertSuccess(_L("Update OK")); |
54 | } else { |
54 | } else { |
55 | alert(_L("Error: %1",data)); |
55 | alertError(_L("Error: %1",data)); |
56 | } |
56 | } |
57 | } |
57 | } |
58 | }); |
58 | }); |
59 | } |
59 | } |
60 | 60 |