Commits

Owen Nelson  committed e454c26

removing some stupid debug info and adding some comments (refs #1)

  • Participants
  • Parent commits 6a8b79f

Comments (0)

Files changed (1)

File wmd/static/wmd/wmd.js

         /*
         This entire closure is cannibalized code taken from jquery.popupWindo.js
         See: http://swip.codylindley.com/jquery.popupWindow.js
+
+        I'm adding a button to the image prompt "text" that we are attaching a popup to via $.live()
+        It sucks, but it will work... for now.
         */
         $(document).ready(function(){
             var settings = {
 								 ',menuBar=' + settings.menubar;
 
             $('button.access_fb').live('click', function(e){
-                console.log("caught click");
-
                 if ($.browser.msie) {//hacked together for IE browsers
                             centeredY = (window.screenTop - 120) + ((((document.documentElement.clientHeight + 120)/2) - (settings.height/2)));
                             centeredX = window.screenLeft + ((((document.body.offsetWidth + 20)/2) - (settings.width/2)));
                     centeredX = window.screenX + (((window.outerWidth/2) - (settings.width/2)));
                 }
                 window.open($(this).attr('goto'), $(this).attr('name'), windowFeatures+',left=' + centeredX +',top=' + centeredY).focus();
-                return false;
             });
         });
 })(jQuery);