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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 24 Apr 2010 18:58:29 +0000

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

Log:
Simplify the store

Changed paths:
    U   web/doc-editor/trunk/js/ui/component/BuildStatus.js

Modified: web/doc-editor/trunk/js/ui/component/BuildStatus.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/BuildStatus.js	2010-04-24 18:50:23 UTC (rev 298435)
+++ web/doc-editor/trunk/js/ui/component/BuildStatus.js	2010-04-24 18:58:29 UTC (rev 298436)
@@ -70,26 +70,16 @@
     proxy : new Ext.data.HttpProxy({
         url : './do/getFailedBuild'
     }),
-    reader : new Ext.data.JsonReader(
-        {
-            root          : 'Items',
-            totalProperty : 'nbItems',
-            id            : 'id'
-        }, Ext.data.Record.create([
-            {
-                name    : 'id',
-                mapping : 'id'
-            }, {
-                name    : 'lang',
-                mapping : 'lang'
-            }, {
-                name       : 'date',
-                mapping    : 'date',
-                type       : 'date',
-                dateFormat : 'Y-m-d H:i:s'
-            }
-        ])
-    )
+    reader : new Ext.data.JsonReader({
+        root          : 'Items',
+        totalProperty : 'nbItems',
+        idProperty    : 'id',
+        fields        : [
+            {name : 'id'},
+            {name : 'lang'},
+            {name : 'date', type : 'date',dateFormat : 'Y-m-d H:i:s' }
+        ]
+    })
 });
 ui.component._BuildStatus.ds.setDefaultSort('date', 'desc');
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.