Skip to content

Commit

Permalink
change internal id handling from integer to string
Browse files Browse the repository at this point in the history
  • Loading branch information
ogobrecht committed Sep 30, 2018
1 parent c18fcef commit 437028b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion apexplugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "dhtmlxGantt",
"version" : "0.8.0",
"version" : "0.9.0",
"description" : "HTML5 gantt chart based on a dhtmlx.com library",
"keywords" : ["JavaScript", "chart", "gantt"],
"homepage" : "https://github.com/ogobrecht/apex-plugin-dhtmlx-gantt",
Expand Down
13 changes: 3 additions & 10 deletions server/plugin-dhtmlxgantt-helper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Oracle APEX plugin dhtmlxGantt helper - v0.8.0 - 2017-11-13
* Oracle APEX plugin dhtmlxGantt helper - v0.9.0 - 2018-09-30
* https://github.com/ogobrecht/apex-plugin-dhtmlx-gantt
* Copyright (c) 2017 Ottmar Gobrecht - GPLv2 license
* Copyright (c) 2017-2018 Ottmar Gobrecht - GPLv2 license
*/

window.plugin_dhtmlxGantt = {};
plugin_dhtmlxGantt.version = "0.8.0";
plugin_dhtmlxGantt.version = "0.9.0";

plugin_dhtmlxGantt.init = function() {

Expand Down Expand Up @@ -270,17 +270,10 @@ plugin_dhtmlxGantt.parse = function(data) {
}
//correct data types
plugin_dhtmlxGantt.dataParsed.data.forEach(function(t) {
t.id = parseInt(t.id);
t.progress = parseFloat(t.progress);
t.duration = parseFloat(t.duration);
t.parent = parseInt(t.parent);
t.open = plugin_dhtmlxGantt.util_parseBool(t.open);
});
plugin_dhtmlxGantt.dataParsed.links.forEach(function(l) {
l.id = parseInt(l.id);
l.source = parseInt(l.source);
l.target = parseInt(l.target);
});
//add holidays to gantt config
if (plugin_dhtmlxGantt.dataParsed.holidays && plugin_dhtmlxGantt.dataParsed.holidays.length > 0) {
plugin_dhtmlxGantt.dataParsed.holidays.forEach(function(holiday) {
Expand Down
6 changes: 3 additions & 3 deletions server/plugin-dhtmlxgantt-helper.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions sources/plugin-dhtmlxgantt-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,10 @@ plugin_dhtmlxGantt.parse = function(data) {
}
//correct data types
plugin_dhtmlxGantt.dataParsed.data.forEach(function(t) {
t.id = parseInt(t.id);
t.progress = parseFloat(t.progress);
t.duration = parseFloat(t.duration);
t.parent = parseInt(t.parent);
t.open = plugin_dhtmlxGantt.util_parseBool(t.open);
});
plugin_dhtmlxGantt.dataParsed.links.forEach(function(l) {
l.id = parseInt(l.id);
l.source = parseInt(l.source);
l.target = parseInt(l.target);
});
//add holidays to gantt config
if (plugin_dhtmlxGantt.dataParsed.holidays && plugin_dhtmlxGantt.dataParsed.holidays.length > 0) {
plugin_dhtmlxGantt.dataParsed.holidays.forEach(function(holiday) {
Expand Down
2 changes: 1 addition & 1 deletion sources/plugin-source.sql
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ BEGIN
DECLARE
v_len PLS_INTEGER;
v_pos PLS_INTEGER := 1;
v_amo PLS_INTEGER := 12000;
v_amo PLS_INTEGER := 8000;
v_chu VARCHAR2( 32767 );
BEGIN
v_len := DBMS_LOB.getlength( v_clob );
Expand Down

0 comments on commit 437028b

Please sign in to comment.