diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 7ccf7b56c..af46ea253 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -3,14 +3,16 @@ -# the COPYRIGHT file. :javascript - $("#settings_nav li > a").live("click", function() { - var target = "#"+$(this).attr('class'); - if( !$(target).is(":visible") ) { - $(".settings_pane").fadeOut(200, function() { - $(target).delay(200).fadeIn(200); - }); - } - }); + $(document).ready(function(){ + $("#settings_nav li > a").live("click", function() { + var target = "#"+$(this).attr('class'); + if( !$(target).is(":visible") ) { + $(".settings_pane").fadeOut(200, function() { + $(target).delay(200).fadeIn(200); + }); + } + }); + } #section_header %h2