From 9bdc2d4fa2da05cb4d71227484e5ee4b655b9664 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 24 Oct 2011 14:33:34 +0000 Subject: [PATCH] // Improving admin list action details --- admin-dev/themes/template/list_action_details.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/template/list_action_details.tpl b/admin-dev/themes/template/list_action_details.tpl index 41ec34727..c47cc128d 100644 --- a/admin-dev/themes/template/list_action_details.tpl +++ b/admin-dev/themes/template/list_action_details.tpl @@ -58,7 +58,8 @@ $(document).ready(function() { var count = 0; // Number of non-empty collum $.each(row, function(it) { - count++; + if(typeof(data.fields_display[it]) != 'undefined') + count++; }); $.each(data.fields_display, function(it, line) { @@ -80,7 +81,7 @@ $(document).ready(function() { else if (count == 0) content.append($(''+row[it]+'')); else - content.append($(''+row[it]+'')); + content.append($(''+row[it]+'')); } }); content.append($(''));