Subversion Repositories oidplus

Rev

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

Rev 422 Rev 424
Line 59... Line 59...
59
                for (var j=0; j<bry.length; j++) {
59
                for (var j=0; j<bry.length; j++) {
60
                        if (bry[j].id != 'asn1ids'+suffix) {
60
                        if (bry[j].id != 'asn1ids'+suffix) {
61
                                var cry = bry[j].value.split(',');
61
                                var cry = bry[j].value.split(',');
62
                                for (var k=0; k<cry.length; k++) {
62
                                for (var k=0; k<cry.length; k++) {
63
                                        var candidate = cry[k];
63
                                        var candidate = cry[k];
64
                                        if (toCheck == candidate) {
64
                                        if ((toCheck != "") && (candidate != "") && (toCheck == candidate)) {
65
                                                if (!confirm(_L("Warning! ASN.1 ID %1 is already used in another OID. Continue?", candidate))) return false;
65
                                                if (!confirm(_L("Warning! ASN.1 ID %1 is already used in another OID. Continue?", candidate))) return false;
66
                                        }
66
                                        }
67
                                }
67
                                }
68
                        }
68
                        }
69
                }
69
                }
Line 77... Line 77...
77
 
77
 
78
        $.ajax({
78
        $.ajax({
79
                url:"ajax.php",
79
                url:"ajax.php",
80
                method:"POST",
80
                method:"POST",
81
                data:{
81
                data:{
-
 
82
                        csrf_token:csrf_token,
82
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
83
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
83
                        action:"Insert",
84
                        action:"Insert",
84
                        id:document.getElementById('id').value,
85
                        id:document.getElementById('id').value,
85
                        ra_email:document.getElementById('ra_email').value,
86
                        ra_email:document.getElementById('ra_email').value,
86
                        comment:document.getElementById('comment').value,
87
                        comment:document.getElementById('comment').value,
Line 130... Line 131...
130
 
131
 
131
        $.ajax({
132
        $.ajax({
132
                url:"ajax.php",
133
                url:"ajax.php",
133
                method:"POST",
134
                method:"POST",
134
                data: {
135
                data: {
-
 
136
                        csrf_token:csrf_token,
135
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
137
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
136
                        action:"Update",
138
                        action:"Update",
137
                        id:id,
139
                        id:id,
138
                        ra_email:document.getElementById('ra_email_'+id).value,
140
                        ra_email:document.getElementById('ra_email_'+id).value,
139
                        comment:document.getElementById('comment_'+id).value,
141
                        comment:document.getElementById('comment_'+id).value,
Line 182... Line 184...
182
 
184
 
183
        $.ajax({
185
        $.ajax({
184
                url:"ajax.php",
186
                url:"ajax.php",
185
                method:"POST",
187
                method:"POST",
186
                data: {
188
                data: {
-
 
189
                        csrf_token:csrf_token,
187
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
190
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
188
                        action:"Delete",
191
                        action:"Delete",
189
                        id:id,
192
                        id:id,
190
                        parent:parent
193
                        parent:parent
191
                },
194
                },
Line 208... Line 211...
208
function updateDesc() {
211
function updateDesc() {
209
        $.ajax({
212
        $.ajax({
210
                url:"ajax.php",
213
                url:"ajax.php",
211
                method:"POST",
214
                method:"POST",
212
                data: {
215
                data: {
-
 
216
                        csrf_token:csrf_token,
213
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
217
                        plugin:"1.3.6.1.4.1.37476.2.5.2.4.1.0",
214
                        action:"Update2",
218
                        action:"Update2",
215
                        id:current_node,
219
                        id:current_node,
216
                        title:(document.getElementById('titleedit') ? document.getElementById('titleedit').value : null),
220
                        title:(document.getElementById('titleedit') ? document.getElementById('titleedit').value : null),
217
                        //description:(document.getElementById('description') ? document.getElementById('description').value : null)
221
                        //description:(document.getElementById('description') ? document.getElementById('description').value : null)