Revision 9f94a283

View differences:

src/sunstone/public/js/opennebula.js
140 140

  
141 141
        "image_type": function(value)
142 142
        {
143
            return ["OS", "CDROM", "DATABLOCK"][value];
143
            return ["OS", "CDROM", "DATABLOCK", "KERNEL", "RAMDISK", "CONTEXT"][value];
144 144
        },
145 145

  
146 146
        "action": function(action, params)
src/sunstone/public/js/plugins/images-tab.js
84 84
                 <select name="img_type" id="img_type">\
85 85
                      <option value="OS">'+tr("OS")+'</option>\
86 86
                      <option value="CDROM">'+tr("CD-ROM")+'</option>\
87
                      <option value="DATABLOCK">'+tr("Datablock")+'</option>\
87
                      <option value="KERNEL">'+tr("Kernel")+'</option>\
88
                      <option value="RAMDISK">'+tr("Ramdisk")+'</option>\
89
                      <option value="CONTEXT">'+tr("Context")+'</option>\
88 90
                 </select>\
89 91
                 <div class="tip">'+tr("Type of the image, explained in detail in the following section. If omitted, the default value is the one defined in oned.conf (install default is OS).")+'</div>\
90 92
               </div>\
......
544 546
                      <option value="OS">'+tr("OS")+'</option>\
545 547
                      <option value="CDROM">'+tr("CD-ROM")+'</option>\
546 548
                      <option value="DATABLOCK">'+tr("Datablock")+'</option>\
549
                      <option value="KERNEL">'+tr("Kernel")+'</option>\
550
                      <option value="RAMDISK">'+tr("Ramdisk")+'</option>\
551
                      <option value="CONTEXT">'+tr("Context")+'</option>\
547 552
                 </select>');
548 553

  
549 554
    var value = OpenNebula.Helper.image_type(image.TYPE);

Also available in: Unified diff