svn: /web/doc-editor/trunk/ js/ui/component/CheckDoc.js php/RepositoryManager.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 01 Apr 2010 06:04:10 +0000

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

Log:
Fix checkDoc script ; Fix open selected files option

Changed paths:
    U   web/doc-editor/trunk/js/ui/component/CheckDoc.js
    U   web/doc-editor/trunk/php/RepositoryManager.php

Modified: web/doc-editor/trunk/js/ui/component/CheckDoc.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/CheckDoc.js	2010-04-01 03:35:38 UTC (rev 297255)
+++ web/doc-editor/trunk/js/ui/component/CheckDoc.js	2010-04-01 06:04:10 UTC (rev 297256)
@@ -73,7 +73,7 @@
         metadata.attr = 'ext:qtip="<img src=\'themes/img/help.png\' style=\'vertical-align: middle;\' /> ' + _('Double-click the cell to open the file selection') + '"';
         return value;
     } else {
-        return false;
+        return;
     }
 };

@@ -252,19 +252,23 @@
                       .getSelections(),
                 i;

-            PhDOE.filePendingOpen = [];
+            PhDOE.AFfilePendingOpen = [];

             for (i = 0; i < r.length; ++i) {
-                PhDOE.filePendingOpen[i] = {
+                PhDOE.AFfilePendingOpen[i] = {
                     fpath : 'en' + win.fpath,
                     fname : r[i].data.file
                 };
             }

             ui.component.RepositoryTree.getInstance().openFile(
-                PhDOE.filePendingOpen[0].fpath,
-                PhDOE.filePendingOpen[0].fname
+                'byPath',
+                PhDOE.AFfilePendingOpen[0].fpath,
+                PhDOE.AFfilePendingOpen[0].fname
             );
+
+            PhDOE.AFfilePendingOpen.shift();
+
             win.close();
         }
     }]
@@ -303,9 +307,10 @@
             data      = record.get(errorType),
             fpath     = record.data.path;

-        this.el.mask(_('Please, wait...'));
+        if (Ext.num(data, false) && data !== 0) {

-        if (Ext.num(data, false) && data !== 0) {
+            this.el.mask(_('Please, wait...'));
+
             XHR({
                 params   : {
                     task      : 'getCheckDocFiles',

Modified: web/doc-editor/trunk/php/RepositoryManager.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryManager.php	2010-04-01 03:35:38 UTC (rev 297255)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2010-04-01 06:04:10 UTC (rev 297256)
@@ -1300,7 +1300,7 @@
                 $tmp = explode('/', $f->path);

                 // Only for Php project
-                if( $project == 'php' ) {
+                if( $project == 'PHP' ) {
                     $check_doc = new ToolsCheckDoc();
                     $ToolsCheckDocResult = $check_doc->checkDoc($infoEN['content'], $f->path);
                 } else {
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.