-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalanderservice.js
45 lines (39 loc) · 1016 Bytes
/
calanderservice.js
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//////////////////
// ADD CALENDER //
//////////////////
function loadCalendar() {
console.log("Load Calendar")
$("#my-calendar").zabuto_calendar({
data: eventData,
cell_border: true,
today: true,
year: 2015,
month: 4,
show_previous: 6,
show_next: 6,
action: function () {
$("#loading").attr('style', 'width:5%');
return myDateFunction(this.id);
}
});
};
///////////////////////
// CALENDER DATA ADD //
//////////////////////
function myDateFunction(id) {
$("#date-popover").hide();
var date = $("#" + id).data("date");
var hasEvent = $("#" + id).data("hasEvent");
$("#dateArea").html('<strong>Date :</strong> '+ date);
parser("SCADA/"+date)
return true;
}
//////////////////////////
// CALENDER DATA LISTNER//
//////////////////////////
function myNavFunction(id) {
$("#date-popover").hide();
var nav = $("#" + id).data("navigation");
var to = $("#" + id).data("to");
console.log('nav ' + nav + ' to: \ + to.month' + '/' + to.year);
}