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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 28 Mar 2010 19:59:48 +0000

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

Log:
Add an ID for this portlet

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

Modified: web/doc-editor/trunk/js/ui/component/PortletInfo.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/PortletInfo.js	2010-03-28 19:59:00 UTC (rev 297012)
+++ web/doc-editor/trunk/js/ui/component/PortletInfo.js	2010-03-28 19:59:48 UTC (rev 297013)
@@ -46,6 +46,16 @@

     switch (value) {

+        // Update datas
+        case 'updateData' :
+            user = record.data.value.user;
+
+            return String.format(
+                    _('{0} update app\'s data'),
+                    user.ucFirst());
+
+        break;
+
         // Login / logout
         case 'logout' :
             user = record.data.value.user;
@@ -154,6 +164,7 @@
 ui.component.PortletInfo = Ext.extend(Ext.ux.Portlet,
 {
     title   : _('Infos'),
+    id      : 'portletInfo',
     iconCls : 'iconInfo',
     layout  : 'fit',
     store   : ui.component._PortletInfo.store,
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.