forked from microsoft/vsts-team-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
daysOffControls.html
31 lines (31 loc) · 1.03 KB
/
daysOffControls.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<title>Calendar external UI controls</title>
<link rel="stylesheet" href="css/site.css" />
<script src="sdk/scripts/VSS.SDK.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js"></script>
</head>
<body>
<div id="add-capacity-event"></div>
<script type="text/javascript">
VSS.init({
explicitNotifyLoaded: true,
moduleLoaderConfig: {
paths: {
"Calendar": "built/min/Calendar",
}
}
});
VSS.require([
"Calendar/Dialogs",
"VSS/Controls"
], function (CalendarDialogs, Controls) {
VSS.register(VSS.getConfiguration().contributedControlInstanceId, function (context) {
return Controls.Control.create(CalendarDialogs.EditCapacityEventControl, $("#add-capacity-event"), VSS.getConfiguration());
});
VSS.notifyLoadSucceeded();
});
</script>
</body>
</html>