﻿$(function () 
{
    $("#msgCodeDialog").dialog({
        autoOpen: false,
        modal: true,
        buttons: {
            "Cancel": function () {
                $(this).dialog("close"); 
           }
        }
    });

    $('#msgBox').dialog({
        autoOpen: false,
        width: 300,
        modal: true,
        buttons: {
            "Ok": function () {
                $(this).dialog("close");
            }
        }
    });

    $('#msgBoxLioading').dialog({
        autoOpen: false,
        width: 300,
        modal: true,
        buttons: {
            "Ok": function () {
                $(this).dialog("close");
            }
        }
    });

    $('#msgBoxFullScreen').dialog({
        autoOpen: false,
        width: 800,
        modal: true,
        buttons: {
            "Ok": function () {
                $(this).dialog("close");
            }
        }
    });

    $('#msgBoxSavingWait').dialog({
        autoOpen: false,
        width: 250,
        modal: true,
        buttons: {
        }
    });

    $('#msgBox').dialog({
        autoOpen: false,
        width: 300,
        modal: true,
        buttons: {
            "Ok": function () {
                $(this).dialog("close");
            }
        }
    });

    $('#msgBoxRefresh').dialog({
        autoOpen: false,
        width: 300,
        modal: true,
        buttons: {
            "Ok": function () {
                $(this).dialog("close");
                //Refresh the page
                //window.location = window.location;
                window.location.reload(true);
            }
        }
    });

    $('#msgBoxDuplicateCourse').dialog({
        autoOpen: false,
        width: 250,
        modal: true,
        buttons: {
            "Save Duplicate Course": function () {
                $(this).dialog("close");
            }
    }
});

    $(".helptip").mouseover(function () {
        $(this).SetBubblePopupInnerHtml($(this).attr('popuptext'), true); //false -> it shows new innerHtml but doesn't save it, 
        //then the script is forced to load everytime the innerHtml... 
    });
});


$(document).ready(function () {

});
