]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 387593: Remove debug code from attachment.js
authorIshitva Goel <ishitva.goel@yahoo.co.in>
Tue, 4 Mar 2014 22:56:49 +0000 (23:56 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 4 Mar 2014 22:56:49 +0000 (23:56 +0100)
r=LpSolit a=justdave

js/attachment.js

index d9bdabc4eaa22797765f2d508391578b5ab1110a..09401f07d28ba2f3440a5f9d917d8cd47195437b 100644 (file)
@@ -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');