Browse Source

cope with Django's jsi18n not being available by adding dummy gettext

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
0d04b98ae6
  1. 8
      pyweb/mumble/media/js/channelviewer.js

8
pyweb/mumble/media/js/channelviewer.js

@ -2,6 +2,14 @@
Ext.namespace('Ext.ux');
if( typeof gettext == "undefined" ){
// Cope with Django's jsi18n not being available by adding dummy gettext
gettext = function( text ){
return text;
};
gettext_noop = gettext;
}
Ext.ux.MumbleChannelNodeUI = Ext.extend(Ext.tree.TreeNodeUI, {
renderElements : function(n, a, targetNode, bulkRender){
Ext.ux.MumbleUserNodeUI.superclass.renderElements.call( this, n, a, targetNode, bulkRender );

Loading…
Cancel
Save