can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r22425: LJSUP-12920: JS works incorrect (old upd...

Committer: dpetrov
LJSUP-12920: JS works incorrect (old update.bml)
U   trunk/cgi-bin/LJ/Widget/UserpicDisplay.pm
Modified: trunk/cgi-bin/LJ/Widget/UserpicDisplay.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/UserpicDisplay.pm	2012-07-12 06:52:20 UTC (rev 22424)
+++ trunk/cgi-bin/LJ/Widget/UserpicDisplay.pm	2012-07-12 07:31:17 UTC (rev 22425)
@@ -100,7 +100,7 @@
         $$head .= qq {
             <script type="text/javascript" language="JavaScript">
             // <![CDATA[
-                DOM.addEventListener(window, "load", function (evt) {
+                LiveJournal.register_hook('page_load'), function() {
                 // attach userpicselect code to userpicbrowse button
                     var ups_btn = \$("lj_userpicselect");
                     var ups_btn_img = \$("lj_userpicselect_img");

Tags: can3p, dpetrov, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments