From dec40c7d566d6c481dfe943d1f8343dcd4e52dd4 Mon Sep 17 00:00:00 2001
From: Adam Palay <adam@edx.org>
Date: Wed, 23 Oct 2013 16:20:47 -0400
Subject: [PATCH] makes ajustments to modals on page load

---
 lms/templates/dashboard.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html
index e2ae7ca042b..683422133fb 100644
--- a/lms/templates/dashboard.html
+++ b/lms/templates/dashboard.html
@@ -101,7 +101,9 @@
       });
       return false;
     });
+  })(this);
 
+  $(function(){
     accessible_modal(".edit-name", "#apply_name_change .close-modal", "#apply_name_change", "#dashboard-main");
 
     accessible_modal(".edit-email", "#change_email .close-modal", "#change_email", "#dashboard-main");
@@ -122,8 +124,7 @@
       var trigger = "#" + $(this).attr("id");
       accessible_modal(trigger, "#unenroll-modal .close-modal", "#unenroll-modal", "#dashboard-main");
     });
-
-  })(this)
+  });
   </script>
 </%block>
 
-- 
GitLab