fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-05-12 08:30 am

[dw-nonfree] Quick tweak: Use jQuery's document.ready function instead of DW.whenPageLoaded

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/2309affcfc80]

http://bugs.dwscoalition.org/show_bug.cgi?id=3670

Remove DW.whenPageLoaded, replace with jQuery's
$(document).ready(function...) -- short form $(function...)

Patch by [personal profile] fu.

Files modified:
  • htdocs/js/homepage_loggedin.js
--------------------------------------------------------------------------------
diff -r 2aafbbf7dcc0 -r 2309affcfc80 htdocs/js/homepage_loggedin.js
--- a/htdocs/js/homepage_loggedin.js	Mon May 02 19:40:01 2011 +0800
+++ b/htdocs/js/homepage_loggedin.js	Thu May 12 16:30:28 2011 +0800
@@ -16,7 +16,7 @@
 */
 
 
-DW.whenPageLoaded( function() {
+jQuery( function($) {
     /**
      *  Add appwidget-first class to first widgets in each column
      */
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org