Author: humbedooh
Date: Sat Aug 3 03:59:03 2019
New Revision: 1864296
URL: http://svn.apache.org/viewvc?rev=1864296&view=rev
Log:
if compile failed, show the whimsy button still, but disable it, so as to show "hey, you can
publish from here, just not yet"
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js
comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js?rev=1864296&r1=1864295&r2=1864296&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js Sat Aug 3 03:59:03
2019
@@ -247,6 +247,7 @@ function UnifiedEditor_compile() {
}
text += "<br/><button class='btn btn-warning' onclick='save_draft();'>Save
as draft</button>"
if (this.compiles) text += " <button onclick='publish_report();'
class='btn btn-success'>Publish via Whimsy</button>"
+ else text += " <button class='btn btn-secondary' disabled title='Please
fix the above issues before you can publish'>Publish via Whimsy</button>"
return text;
}
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=1864296&r1=1864295&r2=1864296&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sat Aug 3 03:59:03 2019
@@ -2158,6 +2158,7 @@ function UnifiedEditor_compile() {
}
text += "<br/><button class='btn btn-warning' onclick='save_draft();'>Save
as draft</button>"
if (this.compiles) text += " <button onclick='publish_report();'
class='btn btn-success'>Publish via Whimsy</button>"
+ else text += " <button class='btn btn-secondary' disabled title='Please
fix the above issues before you can publish'>Publish via Whimsy</button>"
return text;
}
|