diff options
author | ianb <devnull@localhost> | 2007-01-15 19:03:53 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-01-15 19:03:53 +0000 |
commit | 4c1d2311a4e2e67ea24bb9e5aed7c5576333ac6f (patch) | |
tree | c718ab8cb58864dca52546b0ece2d24aac58a67b /paste/evalexception | |
parent | db5eddc51c44bdffd747146773424f63c5b5f941 (diff) | |
download | paste-4c1d2311a4e2e67ea24bb9e5aed7c5576333ac6f.tar.gz |
Patch from David Smith to support newer versions of MochiKit in evalexception
Diffstat (limited to 'paste/evalexception')
-rw-r--r-- | paste/evalexception/media/debug.js | 14 |
1 files changed, 7 insertions, 7 deletions
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; } |