From 4c1d2311a4e2e67ea24bb9e5aed7c5576333ac6f Mon Sep 17 00:00:00 2001 From: ianb Date: Mon, 15 Jan 2007 19:03:53 +0000 Subject: Patch from David Smith to support newer versions of MochiKit in evalexception --- paste/evalexception/media/debug.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'paste/evalexception') diff --git a/paste/evalexception/media/debug.js b/paste/evalexception/media/debug.js index 57f9df3..64d70cb 100644 --- a/paste/evalexception/media/debug.js +++ b/paste/evalexception/media/debug.js @@ -2,14 +2,14 @@ function showFrame(anchor) { var tbid = anchor.getAttribute('tbid'); var expanded = anchor.expanded; if (expanded) { - MochiKit.DOM.hideElement(anchor.expandedElement); + MochiKit.Style.hideElement(anchor.expandedElement); anchor.expanded = false; _swapImage(anchor); return false; } anchor.expanded = true; if (anchor.expandedElement) { - MochiKit.DOM.showElement(anchor.expandedElement); + MochiKit.showElement(anchor.expandedElement); _swapImage(anchor); $('debug_input_'+tbid).focus(); return false; @@ -57,7 +57,7 @@ function submitInput(button, tbid) { debugcount: debug_count, input: input.value }; - MochiKit.DOM.showElement(output); + MochiKit.Style.showElement(output); var d = MochiKit.Async.doSimpleXMLHttpRequest(url, vars); d.addCallbacks(function (data) { var result = data.responseText; @@ -77,13 +77,13 @@ function showError(msg) { } else { el.innerHTML = msg; } - MochiKit.DOM.showElement('error-area'); + MochiKit.Style.showElement('error-area'); } function clearError() { var el = $('error-container'); el.innerHTML = ''; - MochiKit.DOM.hideElement('error-area'); + MochiKit.Style.hideElement('error-area'); } function expandInput(button) { @@ -155,7 +155,7 @@ function expandLong(anchor) { if (! span) { return false; } - MochiKit.DOM.showElement(span); - MochiKit.DOM.hideElement(anchor); + MochiKit.Style.showElement(span); + MochiKit.Style.hideElement(anchor); return false; } -- cgit v1.2.1