mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Bug #3251: Fix generic methods for image tables
This commit is contained in:
1 parent
097e69b181
commit
d41c34b7ab
1 file changed
+7
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user