Subversion Repositories oidplus

Rev

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

Rev 1382 Rev 1400
Line 17... Line 17...
17
 
17
 
18
var OIDplusObjectTypePluginAid = {
18
var OIDplusObjectTypePluginAid = {
19
 
19
 
20
        OID: "1.3.6.1.4.1.37476.2.5.2.4.8.11",
20
        OID: "1.3.6.1.4.1.37476.2.5.2.4.8.11",
21
 
21
 
22
        generateRandomAID: function() {
22
        generateRandomAID: function(current_aid) {
23
                var aid_max_len = 32; // 32 nibbles = 16 bytes
23
                var aid_max_len = 32; // 32 nibbles = 16 bytes
24
                var characters  = '0123456789ABCDEF';
24
                var characters  = '0123456789ABCDEF';
25
                var counter     = 0;
25
                var counter     = 0;
26
 
26
 
27
                var current_aid = current_node.split(":")[1];
-
 
28
                if (current_aid.length >= aid_max_len) {
27
                if (current_aid.length >= aid_max_len) {
29
                                alertWarning(_L("The AID has reached its maximum size."));
28
                                alertWarning(_L("The AID has reached its maximum size."));
30
                                return;
29
                                return;
31
                }
30
                }
32
 
31