community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864173 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/drafts.js wizard.js
Date Thu, 01 Aug 2019 18:09:41 GMT
Author: humbedooh
Date: Thu Aug  1 18:09:41 2019
New Revision: 1864173

URL: http://svn.apache.org/viewvc?rev=1864173&view=rev
Log:
return empty text while loading drafts list..

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js?rev=1864173&r1=1864172&r2=1864173&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/drafts.js Thu Aug  1 18:09:41 2019
@@ -50,7 +50,10 @@ function read_draft(state, json) {
 
 
 function list_drafts() {
-  if (!saved_drafts) GET('drafts.py?action=index&project=%s'.format(project), show_draft_list,
{});
+  if (!saved_drafts) {
+    GET('drafts.py?action=index&project=%s'.format(project), show_draft_list, {});
+    return "";
+  }
   else {
     return show_draft_list();
   }

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864173&r1=1864172&r2=1864173&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Thu Aug  1 18:09:41 2019
@@ -1065,7 +1065,10 @@ function read_draft(state, json) {
 
 
 function list_drafts() {
-  if (!saved_drafts) GET('drafts.py?action=index&project=%s'.format(project), show_draft_list,
{});
+  if (!saved_drafts) {
+    GET('drafts.py?action=index&project=%s'.format(project), show_draft_list, {});
+    return "";
+  }
   else {
     return show_draft_list();
   }



Mime
View raw message