Result Browser
- Failed to load ''.
You see this message for one of the following reasons:
diff --git a/resultbrowser/src/js/jsonview.js b/resultbrowser/src/js/jsonview.js index 261c99edf..d25a44b8d 100644 --- a/resultbrowser/src/js/jsonview.js +++ b/resultbrowser/src/js/jsonview.js @@ -18,4 +18,403 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -!function(){"use strict";function TreeNode(){function findAndMarkMatches(value,elem,searchPhrase,searchState){var empty=0==searchPhrase.length,escapedSearchPhrase=function(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(searchPhrase),regex=searchState.ignoreCase?new RegExp(escapedSearchPhrase,"i"):new RegExp(escapedSearchPhrase),found=!empty&&-1!=value.search(regex),index=0;if(found){for(;elem.firstChild;)elem.removeChild(elem.lastChild);value.split(regex).forEach(function(part,i){if(0!=i){var span=createElement("span",{className:"json-match",content:value.substr(index,searchPhrase.length)});elem.appendChild(span),searchState.matches.push(span),index+=searchPhrase.length}var text=document.createTextNode(part);elem.appendChild(text),index+=part.length})}else elem.textContent=value;return empty||found}this.parent=null,this.key=null,this.value=null,this.type=null,this.expanded=!1,this.children=null,this.elem=null,this.depth=0,this.isLeaf=function(){return null!==this.value},this.hasChildren=function(){return null!==this.children&&0