Permalink
Browse files

Merge pull request #9 from pkwarren/42_javascript

Fix display of RabbitMQ components on ExtJS 4.
  • Loading branch information...
2 parents 4fda16d + c15fa88 commit 37db1eb818b40e8ade773c9516de0eb496ac6295 @cluther cluther committed May 14, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 ZenPacks/zenoss/RabbitMQ/browser/resources/js/RabbitMQDevice.js
  2. +1 −1 setup.py
@@ -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 {
View
@@ -3,7 +3,7 @@
# or saved. Do not modify them directly here.
# NB: PACKAGES is deprecated
NAME = "ZenPacks.zenoss.RabbitMQ"
-VERSION = "1.0.1"
+VERSION = "1.0.2"
AUTHOR = "Zenoss Labs"
LICENSE = "GPLv2"
NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.zenoss']

0 comments on commit 37db1eb

Please sign in to comment.