Subversion Repositories oidplus

Rev

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

Rev 807 Rev 833
Line 55... Line 55...
55
                                        $("#update_header").text(_L("Update aborted"));
55
                                        $("#update_header").text(_L("Update aborted"));
56
                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
56
                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
57
                                        return;
57
                                        return;
58
                                } else {
58
                                } else {
59
                                        $("#update_header").text(_L("Update failed"));
59
                                        $("#update_header").text(_L("Update failed"));
60
                                        //alert(_L("Error: %1",errorThrown));
60
                                        //alertError(_L("Error: %1",errorThrown));
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
                                //hide_waiting_anim();
66
                                //hide_waiting_anim();
67
                                if ("error" in data) {
67
                                if ("error" in data) {
68
                                        $("#update_header").text(_L("Update failed"));
68
                                        $("#update_header").text(_L("Update failed"));
69
                                        //alert(_L("Error: %1",data.error));
69
                                        //alertError(_L("Error: %1",data.error));
70
                                        if ("content" in data) {
70
                                        if ("content" in data) {
71
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + data.content + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data.error + "\n\n");
71
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + data.content + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data.error + "\n\n");
72
                                        } else {
72
                                        } else {
73
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data.error + "\n\n");
73
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data.error + "\n\n");
74
                                        }
74
                                        }
Line 119... Line 119...
119
                                                                        $("#update_header").text(_L("Update aborted"));
119
                                                                        $("#update_header").text(_L("Update aborted"));
120
                                                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
120
                                                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
121
                                                                        return;
121
                                                                        return;
122
                                                                } else {
122
                                                                } else {
123
                                                                        $("#update_header").text(_L("Update failed"));
123
                                                                        $("#update_header").text(_L("Update failed"));
124
                                                                        //alert(_L("Error: %1",errorThrown));
124
                                                                        //alertError(_L("Error: %1",errorThrown));
125
                                                                        $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + errorThrown + "\n\n");
125
                                                                        $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + errorThrown + "\n\n");
126
                                                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
126
                                                                        $("#update_infobox").html($("#update_infobox").html() + '\n\n<input type="button" onclick="location.reload()" value="'+_L('Reload page')+'">');
127
                                                                }
127
                                                                }
128
                                                        },
128
                                                        },
129
                                                        success: function(data2) {
129
                                                        success: function(data2) {
Line 154... Line 154...
154
                                        }
154
                                        }
155
 
155
 
156
                                        return;
156
                                        return;
157
                                } else {
157
                                } else {
158
                                        $("#update_header").text(_L("Update failed"));
158
                                        $("#update_header").text(_L("Update failed"));
159
                                        //alert(_L("Error: %1",data));
159
                                        //alertError(_L("Error: %1",data));
160
                                        if ("content" in data) {
160
                                        if ("content" in data) {
161
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + data.content + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data + "\n\n");
161
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + data.content + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data + "\n\n");
162
                                        } else {
162
                                        } else {
163
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data + "\n\n");
163
                                                $("#update_infobox").html($("#update_infobox").html() + "\n\n" + '<span class="severity_4"><strong>' + _L('FATAL ERROR') + ':</strong></span> ' + data + "\n\n");
164
                                        }
164
                                        }