- runBeforeLoad();
- $(document).ready(function () {
- //$("#menu-container").populateNavbar();
- $("#login").submit(function () {
- $("#login").login();
- return false;
- });
-
- $("#logout").click(function () {
- $("#logout").logout();
- });
-
- $("#main_controls").submit(function () {
- //Validate!
- return false;
- });
-
- $("#errorlog").setErrorLog();
- });
+ runBeforeLoad().always(function () {
+ $(document).ready(function () {
+ //Show the content!
+ $("#content").css("display", "block");
+ //Set the welcome bar
+ var name = " " + (mctx.friendlyName ? mctx.friendlyName : "");
+ $("#welcome-container").text("Welcome"+ name + "!");
+ //$("#menu-container").populateNavbar();
+
+ $("#logout").click(function () {
+ $("#logout").logout();
+ });
+
+ $("#main_controls").submit(function () {
+ //Validate!
+ return false;
+ });
+
+ $("#errorlog").setErrorLog();
+ });
+ })
+