You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2016/02/11 12:15:47 UTC
svn commit: r1729808 - /steve/trunk/pysteve/www/htdocs/js/steve_rest.js
Author: humbedooh
Date: Thu Feb 11 11:15:47 2016
New Revision: 1729808
URL: http://svn.apache.org/viewvc?rev=1729808&view=rev
Log:
continuous style switch
Modified:
steve/trunk/pysteve/www/htdocs/js/steve_rest.js
Modified: steve/trunk/pysteve/www/htdocs/js/steve_rest.js
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/js/steve_rest.js?rev=1729808&r1=1729807&r2=1729808&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/js/steve_rest.js (original)
+++ steve/trunk/pysteve/www/htdocs/js/steve_rest.js Thu Feb 11 11:15:47 2016
@@ -212,7 +212,7 @@ function displayTally(code, response, is
pre.innerHTML = response.debug.join("\n")
pre.setAttribute("id", "debug_" + issue)
pre.setAttribute("style", "display: none; border: 1px dotted #666; background: #FFE;")
- obj.innerHTML += "<a href=\"javascript:void(document.getElementById('debug_" + issue + "').style.display = 'block');\">Show debug</a>"
+ obj.innerHTML += "<a href=\"javascript:void(document.getElementById('debug_" + issue + "').style.display = (document.getElementById('debug_" + issue + "').style.display == 'block') ? 'none' : 'block');\">Show debug</a>"
obj.appendChild(pre)
}
}