Permalink
Browse files

Fix display of RabbitMQ components on ExtJS 4.

  • Loading branch information...
Philip K. Warren
Philip K. Warren committed May 14, 2012
1 parent 4fda16d commit ceeb60dfedc75389863592e015e2f76aff28e353
Showing with 3 additions and 1 deletion.
  1. +3 −1 ZenPacks/zenoss/RabbitMQ/browser/resources/js/RabbitMQDevice.js
@@ -23,9 +23,11 @@ Zenoss.types.register({
Ext.apply(Zenoss.render, {
entityLinkFromGrid: function(obj) {
+ // Compatibility fix for ExtJS3 or 4.
+ var fmt = Ext.isDefined(Ext.String) ? Ext.String.format : String.format;
if (obj && obj.uid && obj.name) {
if ( !this.panel || this.panel.subComponentGridPanel) {
- return String.format(
+ return fmt(
'<a href="javascript:Ext.getCmp(\'component_card\').componentgrid.jumpToEntity(\'{0}\', \'{1}\');">{1}</a>',
obj.uid, obj.name);
} else {

0 comments on commit ceeb60d

Please sign in to comment.