mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #3251: Fix generic methods for image tables
This commit is contained in:
parent
097e69b181
commit
d41c34b7ab
@ -6032,9 +6032,14 @@ function setupImageTableSelect(section, context_id, opts){
|
||||
var list_array = [];
|
||||
|
||||
$.each(resource_list,function(){
|
||||
var add = true;
|
||||
var image = this.IMAGE;
|
||||
|
||||
if(opts.filter_fn){
|
||||
// KERNEL || RAMDISK || CONTEXT
|
||||
var add = ( image.TYPE != "3" &&
|
||||
image.TYPE != "4" &&
|
||||
image.TYPE != "5" )
|
||||
|
||||
if(add && opts.filter_fn){
|
||||
add = opts.filter_fn(this.IMAGE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user