[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: * Use {2} instead of {1} in the format string (fixes #1016).

git at icinga.org git at icinga.org
Thu Jan 13 17:54:24 CET 2011


Module: icinga-web
Branch: mfriedrich/fixes
Commit: d578cf8beb119518795597dfef4858ea4cf7f331
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=d578cf8beb119518795597dfef4858ea4cf7f331

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Jan  7 12:01:49 2011 +0100

* Use {2} instead of {1} in the format string (fixes #1016).

---

 app/modules/Cronks/lib/js/grid/ColumnRenderer.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/js/grid/ColumnRenderer.js b/app/modules/Cronks/lib/js/grid/ColumnRenderer.js
index 88d7789..b0dad35 100755
--- a/app/modules/Cronks/lib/js/grid/ColumnRenderer.js
+++ b/app/modules/Cronks/lib/js/grid/ColumnRenderer.js
@@ -97,7 +97,7 @@ Cronk.grid.ColumnRenderer = {
 			}
 			else {
 				var imgName = new Ext.XTemplate(my.image).apply(record.data);
-				return String.format('<img src="{0}/{1}"{1} />', AppKit.c.path, imgName, (flat_attr && " " + flat_attr + " "));
+				return String.format('<img src="{0}/{1}"{2} />', AppKit.c.path, imgName, (flat_attr && " " + flat_attr + " "));
 			}
 		}
 	},





More information about the icinga-checkins mailing list