[Kimchi-devel] [PATCH] UI bug fix: Properly display partitions when extending a logical pool

Aline Manera alinefm at linux.vnet.ibm.com
Thu Jul 31 18:25:27 UTC 2014


Commit f7ec8f0e replaced kimchi.template to kimchi.substitute but a
occurence was not properly updated.
And it was preventing user to extend a logical pool as any partition
was displayed.
Fix it.

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.storage_main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.storage_main.js b/ui/js/src/kimchi.storage_main.js
index 49fcc4a..849eb5e 100644
--- a/ui/js/src/kimchi.storage_main.js
+++ b/ui/js/src/kimchi.storage_main.js
@@ -216,7 +216,7 @@ kimchi.initLogicalPoolExtend = function() {
                 if (data.length > 0) {
                     for(var i=0;i<data.length;i++){
                         if (data[i].type === 'part' || data[i].type === 'disk') {
-                            $('.host-partition', '#logicalPoolExtend').append(kimchi.template($('#logicalPoolExtendTmpl').html(), data[i]));
+                            $('.host-partition', '#logicalPoolExtend').append(kimchi.substitute($('#logicalPoolExtendTmpl').html(), data[i]));
                         }
                     }
                 } else {
-- 
1.9.3




More information about the Kimchi-devel mailing list