You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/05 10:58:38 UTC

svn commit: r1864426 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/drafts.js wizard.js

Author: humbedooh
Date: Mon Aug  5 10:58:38 2019
New Revision: 1864426

URL: http://svn.apache.org/viewvc?rev=1864426&view=rev
Log:
hide title while saving draft

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=1864426&r1=1864425&r2=1864426&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 Mon Aug  5 10:58:38 2019
@@ -19,6 +19,7 @@ function save_draft() {
     document.getElementById('loader_text').innerText = "Saving draft...";
     document.getElementById('wizard_spinner').style.display = 'block';
     document.getElementById('wrapper').style.display = 'none';
+    document.getElementById("pname").style.display = 'none';
     
     POST('drafts.py', draft_saved, {}, formdata);
 }
@@ -27,6 +28,7 @@ function draft_saved(state, json) {
     // Disengage spinner
     document.getElementById('wizard_spinner').style.display = 'none';
     document.getElementById('wrapper').style.display = 'block';
+    document.getElementById("pname").style.display = 'block';
     
     if (json.filename) {
         modal("Draft was saved in the reporter database as <kbd>%s</kbd>. You can revisit this draft at any time by loading it from the base data tab. Drafts are kept for up to two months.".format(json.filename));

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=1864426&r1=1864425&r2=1864426&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Mon Aug  5 10:58:38 2019
@@ -1034,6 +1034,7 @@ function save_draft() {
     document.getElementById('loader_text').innerText = "Saving draft...";
     document.getElementById('wizard_spinner').style.display = 'block';
     document.getElementById('wrapper').style.display = 'none';
+    document.getElementById("pname").style.display = 'none';
     
     POST('drafts.py', draft_saved, {}, formdata);
 }
@@ -1042,6 +1043,7 @@ function draft_saved(state, json) {
     // Disengage spinner
     document.getElementById('wizard_spinner').style.display = 'none';
     document.getElementById('wrapper').style.display = 'block';
+    document.getElementById("pname").style.display = 'block';
     
     if (json.filename) {
         modal("Draft was saved in the reporter database as <kbd>%s</kbd>. You can revisit this draft at any time by loading it from the base data tab. Drafts are kept for up to two months.".format(json.filename));