Skip to content

Commit c6ec13e

Browse files
committed
[update] version 4.1
1 parent 00ad9e9 commit c6ec13e

File tree

139 files changed

+13610
-8065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+13610
-8065
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dhtmlxGantt v.4.0
1+
dhtmlxGantt v.4.1
22
=================
33

44
dhtmlxGantt is an open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart. It can show the dependencies between tasks as lines and allows you to set up different relationships between tasks (finish-to-start, start-to-start, end-to-end). dhtmlxGantt provides flexible API and a large number of event handles, which gives you the freedom to customize it for your needs.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gantt",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"homepage": "http://dhtmlx.com/docs/products/dhtmlxGantt/",
55
"description": "An open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart.",
66
"main": [

codebase/connector/base_connector.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,9 @@ protected function end_run(){
700700
*/
701701
public function set_encoding($encoding){
702702
$this->encoding=$encoding;
703+
if ($this->live_update !== false) {
704+
$this->live_update->set_encoding($this->encoding);
705+
}
703706
}
704707

705708
/*! enable or disable dynamic loading mode
@@ -854,9 +857,10 @@ public function update($data) {
854857
@param url
855858
url used for update notifications
856859
*/
857-
public function enable_live_update($table, $url=false){
858-
$this->live_update = new $this->live_update_data_type($this->sql, $this->config, $this->request, $table,$url, array("connector" => $this));
860+
public function enable_live_update($table, $url=false, $origin_table = false){
861+
$this->live_update = new $this->live_update_data_type($this->sql, $this->config, $this->request, $table,$url, array("connector" => $this, "table" => $origin_table));
859862
$this->live_update->set_event($this->event,$this->names["item_class"]);
863+
$this->live_update->set_encoding($this->encoding);
860864
$this->event->attach("beforeOutput", Array($this->live_update, "version_output"));
861865
$this->event->attach("beforeFiltering", Array($this->live_update, "get_updates"));
862866
$this->event->attach("beforeProcessing", Array($this->live_update, "check_collision"));

codebase/connector/db_common.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public function set_source($value){
217217
if (is_string($value))
218218
$value = trim($value);
219219
$this->source = $value;
220-
if (!$this->source) throw new Exception("Source of data can't be empty");
221220
}
222221
/*! sets data limits
223222

codebase/connector/update.php

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ class DataUpdate{
104104

105105
protected $table; //!< table , where actions are stored
106106
protected $url; //!< url for notification service, optional
107-
protected $sql; //!< DB wrapper object
108-
protected $config; //!< DBConfig object
109-
protected $request; //!< DBRequestConfig object
110-
protected $event;
111-
protected $item_class;
112-
protected $demu;
107+
protected $sql; //!< DB wrapper object
108+
protected $config; //!< DBConfig object
109+
protected $request; //!< DBRequestConfig object
110+
protected $encoding="utf-8";
111+
protected $event;
112+
protected $item_class;
113+
protected $demu;
113114

114115
//protected $config;//!< DataConfig instance
115116
//protected $request;//!< DataRequestConfig instance
@@ -141,8 +142,16 @@ public function set_event($master, $name){
141142
$this->event = $master;
142143
$this->item_class = $name;
143144
}
145+
146+
public function set_encoding($encoding){
147+
$this->encoding = $encoding;
148+
}
144149

145150
protected function select_update($actions_table, $join_table, $id_field_name, $version, $user) {
151+
152+
if ($this->options["table"] !== false)
153+
$join_table = $this->options["table"];
154+
146155
$sql = "SELECT $join_table.*, {$actions_table}.id, {$actions_table}.dataId, {$actions_table}.type as action_table_type, {$actions_table}.user FROM {$actions_table}";
147156
$sql .= " LEFT OUTER JOIN {$join_table} ON ";
148157
$sql .= "{$actions_table}.DATAID = {$join_table}.{$id_field_name} ";
@@ -218,8 +227,8 @@ public function get_updates() {
218227
$output = $this->render_set($this->sql->select($sub_request), $this->item_class);
219228

220229
ob_clean();
221-
header("Content-type:text/xml");
222-
230+
header("Content-type:text/xml; charset=".$this->encoding);
231+
223232
echo $this->updates_start();
224233
echo $this->get_version();
225234
echo $output;
@@ -342,4 +351,4 @@ protected function output($res){
342351

343352
}
344353

345-
?>
354+
?>

codebase/dhtmlxgantt.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.js

Lines changed: 285 additions & 254 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/ext/dhtmlxgantt_csp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/ext/dhtmlxgantt_fullscreen.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)