Subversion Repositories oidplus

Rev

Rev 767 | Rev 987 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 767 Rev 833
Line 157... Line 157...
157
                                invcolors: $("#icolor")[0].value,
157
                                invcolors: $("#icolor")[0].value,
158
                                theme: $("#theme")[0].value,
158
                                theme: $("#theme")[0].value,
159
                        },
159
                        },
160
                        error:function(jqXHR, textStatus, errorThrown) {
160
                        error:function(jqXHR, textStatus, errorThrown) {
161
                                if (errorThrown == "abort") return;
161
                                if (errorThrown == "abort") return;
162
                                alert(_L("Error: %1",errorThrown));
162
                                alertError(_L("Error: %1",errorThrown));
163
                        },
163
                        },
164
                        success:function(data) {
164
                        success:function(data) {
165
                                if ("error" in data) {
165
                                if ("error" in data) {
166
                                        alert(_L("Error: %1",data.error));
166
                                        alertError(_L("Error: %1",data.error));
167
                                } else if (data.status >= 0) {
167
                                } else if (data.status >= 0) {
168
                                        OIDplusPageAdminColors.hue_shift_saved = OIDplusPageAdminColors.hue_shift;
168
                                        OIDplusPageAdminColors.hue_shift_saved = OIDplusPageAdminColors.hue_shift;
169
                                        OIDplusPageAdminColors.sat_shift_saved = OIDplusPageAdminColors.sat_shift;
169
                                        OIDplusPageAdminColors.sat_shift_saved = OIDplusPageAdminColors.sat_shift;
170
                                        OIDplusPageAdminColors.val_shift_saved = OIDplusPageAdminColors.val_shift;
170
                                        OIDplusPageAdminColors.val_shift_saved = OIDplusPageAdminColors.val_shift;
171
                                        OIDplusPageAdminColors.invcolors_saved = OIDplusPageAdminColors.invcolors;
171
                                        OIDplusPageAdminColors.invcolors_saved = OIDplusPageAdminColors.invcolors;
172
                                        OIDplusPageAdminColors.test_color_theme(); // apply visually
172
                                        OIDplusPageAdminColors.test_color_theme(); // apply visually
173
                                        alert(_L("Update OK"));
173
                                        alertSuccess(_L("Update OK"));
174
                                } else {
174
                                } else {
175
                                        alert(_L("Error: %1",data));
175
                                        alertError(_L("Error: %1",data));
176
                                }
176
                                }
177
                        }
177
                        }
178
                });
178
                });
179
        }
179
        }
180
 
180