Subversion Repositories oidplus

Rev

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

Rev 1036 Rev 1292
Line 61... Line 61...
61
                                        $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + errorThrown + "\n\n");
61
                                        $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + errorThrown + "\n\n");
62
                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
62
                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
63
                                }
63
                                }
64
                        },
64
                        },
65
                        success: function(data) {
65
                        success: function(data) {
-
 
66
                                // TODO: Use oidplus_ajax_success(), since this checks the existance of "error" in data, and checks if status>=0
66
                                //hide_waiting_anim();
67
                                //hide_waiting_anim();
67
                                if (typeof data === "object" && "error" in data) {
68
                                if (typeof data === "object" && "error" in data) {
68
                                        $("#update_header").text(_L("Update failed"));
69
                                        $("#update_header").text(_L("Update failed"));
69
                                        //alertError(_L("Error: %1",data.error));
70
                                        //alertError(_L("Error: %1",data.error));
70
                                        if (typeof data === "object" && "content" in data) {
71
                                        if (typeof data === "object" && "content" in data) {