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

From: Date: Sun, 07 Mar 2010 15:25:24 +0000
Subject: svn: /web/doc-editor/trunk/js/ui/component/ PendingPatchGrid.js
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1581@lists.php.net to get a copy of this message
yannick Sun, 07 Mar 2010 15:25:24 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295927 Log: Fix drag&drop from PendingCommit. Only module that we can't do multi-drag&drop as this module handle files witch can be open into all modules Changed paths: U web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js Modified: web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js =================================================================== --- web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js 2010-03-07 15:24:28 UTC (rev 295926) +++ web/doc-editor/trunk/js/ui/component/PendingPatchGrid.js 2010-03-07 15:25:24 UTC (rev 295927) @@ -145,8 +145,16 @@ openFile: function(rowId) { - var storeRecord = this.store.getById(rowId), - FilePath = storeRecord.data.path, + var storeRecord = false; + + this.store.each(function(r) + { + if (r.data.id === rowId) { + storeRecord = r; + } + }); + + var FilePath = storeRecord.data.path, FileName = storeRecord.data.name, FileUniqID = storeRecord.data.uniqID, FileID = Ext.util.md5('PP-' + FileUniqID + FilePath + FileName);

« previous php.doc.web (#1581) next »