[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Fixed #1646, ColumnRenderer encodings

git at icinga.org git at icinga.org
Tue Aug 23 15:51:08 CEST 2011


Module: icinga-web
Branch: jmosshammer/default
Commit: 9ec99d028e5bad5f5e59e64dd186b90868b2392d
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=9ec99d028e5bad5f5e59e64dd186b90868b2392d

Author: Marius Hein <marius.hein at netways.de>
Date:   Tue Aug 23 12:43:29 2011 +0200

* Fixed #1646, ColumnRenderer encodings

---

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

diff --git a/app/modules/Cronks/lib/js/grid/renderer/ColumnRenderer.js b/app/modules/Cronks/lib/js/grid/renderer/ColumnRenderer.js
index a752de6..746abff 100755
--- a/app/modules/Cronks/lib/js/grid/renderer/ColumnRenderer.js
+++ b/app/modules/Cronks/lib/js/grid/renderer/ColumnRenderer.js
@@ -60,8 +60,7 @@ Cronk.grid.ColumnRenderer = {
 
 			var out = Ext.util.Format.ellipsis(value, (cfg.length || defaultLength));
 			if (out.indexOf('...', (out.length-3)) != -1) {
-				// @todo Check if html encoding brings some trouble
-				metaData.attr = 'ext:qtip="' + value + '"';
+                metaData.attr = 'ext:qtip="' + value.replace(/"/g, "'") + '"';
 			}
 			
 			return out;





More information about the icinga-checkins mailing list