﻿// UIService.js
/// <reference path="../Default.aspx" />

function loadJobsList() {
    UIService.RenderUserControl("JobsList", displayJobsList, failedLoadJobsList);
}

function displayJobsList(result) {
    $get("jobsPlaceHolder").innerHTML = result;
    $("#jobslist").accordion({ autoHeight: false });
}

function failedLoadJobsList(error) {
    $get("jobsPlaceHolder").innerHTML = "";
}

// notify ScriptManager that this is the end of the script
if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
