Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix display of RabbitMQ components on ExtJS 4.

  • Loading branch information...
commit ceeb60dfedc75389863592e015e2f76aff28e353 1 parent 4fda16d
Philip K. Warren authored
4 ZenPacks/zenoss/RabbitMQ/browser/resources/js/RabbitMQDevice.js
View
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.