From: Ishitva Goel Date: Tue, 4 Mar 2014 22:56:49 +0000 (+0100) Subject: Bug 387593: Remove debug code from attachment.js X-Git-Tag: bugzilla-4.5.3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a8f3e98c1c98765c802e91dde1b2092cbd2e46b;p=thirdparty%2Fbugzilla.git Bug 387593: Remove debug code from attachment.js r=LpSolit a=justdave --- diff --git a/js/attachment.js b/js/attachment.js index d9bdabc4ea..09401f07d2 100644 --- a/js/attachment.js +++ b/js/attachment.js @@ -236,11 +236,6 @@ function viewRaw(patchviewerinstalled) function switchToMode(mode, patchviewerinstalled) { - if (mode == current_mode) { - alert('switched to same mode! This should not happen.'); - return; - } - // Switch out of current mode if (current_mode == 'edit') { hideElementById('editFrame');