svn: /web/doc-editor/trunk/js/ui/component/ CommitLogPrompt.js CommitPrompt.js

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 03 Dec 2009 14:21:07 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291645

Log:
Fix bug #50341

Bug: http://bugs.php.net/50341 (Open) getLogMessage is call twice
      
Changed paths:
    U   web/doc-editor/trunk/js/ui/component/CommitLogPrompt.js
    U   web/doc-editor/trunk/js/ui/component/CommitPrompt.js

Modified: web/doc-editor/trunk/js/ui/component/CommitLogPrompt.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/CommitLogPrompt.js	2009-12-03 12:39:07 UTC (rev 291644)
+++ web/doc-editor/trunk/js/ui/component/CommitLogPrompt.js	2009-12-03 14:21:07 UTC (rev 291645)
@@ -119,6 +119,10 @@
     sm    : ui.component._CommitLogPrompt.sm,
     store : ui.component._CommitLogPrompt.store,
     listeners : {
+        render : function(grid)
+        {
+            grid.store.load();
+        },
         rowcontextmenu : function(grid, rowIndex, e)
         {
             grid.getSelectionModel().selectRow(rowIndex);

Modified: web/doc-editor/trunk/js/ui/component/CommitPrompt.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/CommitPrompt.js	2009-12-03 12:39:07 UTC (rev 291644)
+++ web/doc-editor/trunk/js/ui/component/CommitPrompt.js	2009-12-03 14:21:07 UTC (rev 291645)
@@ -80,10 +80,6 @@
                 valueField    : 'id',
                 displayField  : 'text',
                 listeners : {
-                    render : function(combo)
-                    {
-                        combo.store.load();
-                    },
                     select : function(combo, record, numIndex)
                     {
                         Ext.getCmp('form-commit-message-log').setValue(record.data.text);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.