cvs: doc-editor /js main.js

From: Date: Wed, 15 Apr 2009 07:51:17 +0000
Subject: cvs: doc-editor /js main.js
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3724@lists.php.net to get a copy of this message
yannick Wed Apr 15 07:51:17 2009 UTC Modified files: /doc-editor/js main.js Log: Fix scope issue in menuMarkupLANG() http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.27&r2=1.28&diff_format=u Index: doc-editor/js/main.js diff -u doc-editor/js/main.js:1.27 doc-editor/js/main.js:1.28 --- doc-editor/js/main.js:1.27 Wed Apr 15 07:44:53 2009 +++ doc-editor/js/main.js Wed Apr 15 07:51:17 2009 @@ -127,7 +127,7 @@ Ext.MessageBox.alert(_('Forbidden'), _('You can\'t do this action as cvsread user.')); }, - menuMarkupLANG: function(panel){ + menuMarkupLANG: function(panel, scope){ var menu, subMenu; @@ -141,7 +141,7 @@ }, { text: _('Revcheck tag'), handler: function(){ - Ext.getCmp(panel).insertIntoLine(2, "end", "\n<!-- EN-Revision: 1.XX Maintainer: " + this.userLogin + " Status: ready -->"); + Ext.getCmp(panel).insertIntoLine(2, "end", "\n<!-- EN-Revision: 1.XX Maintainer: " + scope.userLogin + " Status: ready -->"); Ext.getCmp(panel).focus(); } }] @@ -3607,7 +3607,7 @@ Ext.getCmp('FE-LANG-' + FileID).reIndentAll(); } - }, this.menuMarkupLANG('FE-LANG-' + FileID)] + }, this.menuMarkupLANG('FE-LANG-' + FileID, this)] }, { title: _('En File: ') + FilePath + FileName, originTitle: _('En File: ') + FilePath + FileName, @@ -4412,7 +4412,7 @@ handler: function(){ Ext.getCmp('FNU-LANG-' + FileID).reIndentAll(); } - }, this.menuMarkupLANG('FNU-LANG-' + FileID)] + }, this.menuMarkupLANG('FNU-LANG-' + FileID, this)] }, { title: _('En File: ') + FilePath + FileName, originTitle: _('En File: ') + FilePath + FileName, @@ -5754,7 +5754,7 @@ Ext.getCmp('FNR-LANG-' + FileID).reIndentAll(); } - }, this.menuMarkupLANG('FNR-LANG-' + FileID)] + }, this.menuMarkupLANG('FNR-LANG-' + FileID, this)] }, { title: _('En File: ') + FilePath + FileName, @@ -6275,7 +6275,7 @@ FilePath = t.join('/') + '/'; if (FileLang !== 'en') { - menuMarkUp = this.menuMarkupLANG('AF-FILE-' + FileID); + menuMarkUp = this.menuMarkupLANG('AF-FILE-' + FileID, this); } else { menuMarkUp = this.menuMarkupEN('AF-FILE-' + FileID);

« previous php.doc.cvs (#3724) next »