Skip to content

Commit ea57691

Browse files
committed
update dataProcessor initialization and recurring events
1 parent e865613 commit ea57691

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

basic.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
scheduler.init("scheduler_here", new Date(),"month");
3636
scheduler.load("data/api.php");
3737

38-
var dp = new dataProcessor("data/api.php");
39-
dp.init(scheduler);
40-
dp.setTransactionMode("JSON"); // use to transfer data with JSON
38+
var dp = scheduler.createDataProcessor({
39+
url: "data/api.php",
40+
mode: "JSON"
41+
});
4142
</script>
4243
</body>
4344
</html>

recurring.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
77
<title>How to start - connector - recurring</title>
88
<script src="https://cdn.dhtmlx.com/scheduler/edge/dhtmlxscheduler.js" type="text/javascript"></script>
9-
<script src="https://cdn.dhtmlx.com/scheduler/edge/ext/dhtmlxscheduler_recurring.js" type="text/javascript"></script>
109
<link rel="stylesheet" href="https://cdn.dhtmlx.com/scheduler/edge/dhtmlxscheduler_material.css" type="text/css">
1110
<style type="text/css" media="screen">
1211
html, body{
@@ -32,13 +31,17 @@
3231
<div class="dhx_cal_data"></div>
3332
</div>
3433
<script>
34+
scheduler.plugins({
35+
recurring: true
36+
});
3537
scheduler.setLoadMode("day");
3638
scheduler.init("scheduler_here", new Date(), "month");
3739
scheduler.load("data/api_recurring.php");
3840

39-
var dp = new dataProcessor("data/api_recurring.php");
40-
dp.init(scheduler);
41-
dp.setTransactionMode("JSON"); // use to transfer data with JSON
41+
var dp = scheduler.createDataProcessor({
42+
url: "data/api_recurring.php",
43+
mode: "JSON"
44+
});
4245
</script>
4346
</body>
4447
</html>

0 commit comments

Comments
 (0)