can3p (can3p) wrote in changelog,
can3p
can3p
changelog

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

Committer: dpetrov
LJSUP-12920: JS works incorrect (old update.bml)
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-07-12 07:57:03 UTC (rev 22426)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-07-12 08:57:22 UTC (rev 22427)
@@ -242,7 +242,7 @@
     my ($self) = @_;
 
     return $self->wrap_js(q{
-        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