From d41c34b7abcd78f62cbfb5d9df119d83cf7db5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 23 Oct 2014 13:30:11 +0200 Subject: [PATCH] Bug #3251: Fix generic methods for image tables --- src/sunstone/public/js/sunstone.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 0352087c0e..b692d3cb44 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -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); }