Subversion Repositories oidplus

Rev

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

Rev 1036 Rev 1292
Line 73... Line 73...
73
                        },
73
                        },
74
                        data: form_data,
74
                        data: form_data,
75
                        error: oidplus_ajax_error,
75
                        error: oidplus_ajax_error,
76
                        success:function(data) {
76
                        success:function(data) {
77
                                // TODO XXX: (Future feature) If the user decides that existing OIDs shall be overwritten, then we may not print "Ignored OIDs because they are already existing"
77
                                // TODO XXX: (Future feature) If the user decides that existing OIDs shall be overwritten, then we may not print "Ignored OIDs because they are already existing"
-
 
78
                                // TODO: Use oidplus_ajax_success(), since this checks the existance of "error" in data, and checks if status>=0
78
                                if (typeof data === "object" && "error" in data) {
79
                                if (typeof data === "object" && "error" in data) {
79
                                        if (typeof data === "object" && "count_imported_oids" in data) {
80
                                        if (typeof data === "object" && "count_imported_oids" in data) {
80
                                                // TODO: Device if alertSuccess, alertWarning oder alertError is shown
81
                                                // TODO: Device if alertSuccess, alertWarning oder alertError is shown
81
                                                alertSuccess(_L("Successfully imported OIDs: %1",data.count_imported_oids)+"\n"+
82
                                                alertSuccess(_L("Successfully imported OIDs: %1",data.count_imported_oids)+"\n"+
82
                                                          _L("Ignored OIDs because they are already existing: %1",data.count_already_existing)+"\n"+
83
                                                          _L("Ignored OIDs because they are already existing: %1",data.count_already_existing)+"\n"+