Skip to content

Commit 2710351

Browse files
committed
#332 v2.7.3
1 parent 4ec78bd commit 2710351

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

dist/jsgantt.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -626,18 +626,14 @@ exports.GanttChart = function (pDiv, pFormat) {
626626
if (this.vTaskList[i].getTaskDiv() && vTmpDiv_1) {
627627
var vTmpDiv2 = draw_utils_1.newNode(vTmpDiv_1, 'div', this.vDivId + 'tt' + vID, null, null, null, null, 'none');
628628
var _a = this.createTaskInfo(this.vTaskList[i], this.vTooltipTemplate), component = _a.component, callback = _a.callback;
629-
var el = document.createElement('div');
630-
el.appendChild(component);
631-
vTmpDiv2.setAttribute('data-tooltip', el.innerHTML);
629+
vTmpDiv2.appendChild(component);
632630
events_1.addTooltipListeners(this, this.vTaskList[i].getTaskDiv(), vTmpDiv2, callback);
633631
}
634632
// Add Plan Task Info div for tooltip
635633
if (this.vTaskList[i].getPlanTaskDiv() && vTmpDiv_1) {
636634
var vTmpDiv2 = draw_utils_1.newNode(vTmpDiv_1, 'div', this.vDivId + 'tt' + vID, null, null, null, null, 'none');
637635
var _b = this.createTaskInfo(this.vTaskList[i], this.vTooltipTemplate), component = _b.component, callback = _b.callback;
638-
var el = document.createElement('div');
639-
el.appendChild(component);
640-
vTmpDiv2.setAttribute('data-tooltip', el.innerHTML);
636+
vTmpDiv2.appendChild(component);
641637
events_1.addTooltipListeners(this, this.vTaskList[i].getPlanTaskDiv(), vTmpDiv2, callback);
642638
}
643639
}
@@ -1244,9 +1240,9 @@ exports.showToolTip = function (pGanttChartObj, e, pContents, pWidth, pTimer) {
12441240
this.addListener('mouseout', function () { general_utils_1.delayedHide(pGanttChartObj, pGanttChartObj.vTool, pTimer); }, pGanttChartObj.vTool);
12451241
}
12461242
clearTimeout(pGanttChartObj.vTool.delayTimeout);
1247-
var newHTML = pContents.getAttribute('data-tooltip');
1243+
var newHTML = pContents.innerHTML;
12481244
if (pGanttChartObj.vTool.vToolCont.getAttribute("content") !== newHTML) {
1249-
pGanttChartObj.vTool.vToolCont.innerHTML = pContents.getAttribute('data-tooltip');
1245+
pGanttChartObj.vTool.vToolCont.innerHTML = pContents.innerHTML;
12501246
// as we are allowing arbitrary HTML we should remove any tag ids to prevent duplication
12511247
general_utils_1.stripIds(pGanttChartObj.vTool.vToolCont);
12521248
pGanttChartObj.vTool.vToolCont.setAttribute("content", newHTML);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsgantt-improved",
3-
"version": "2.7.2",
3+
"version": "2.7.3",
44
"description": "jsgantt-improved",
55
"main": "dist/index.js",
66
"scripts": {

src/options.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { parseDateFormatStr } from "./utils/date_utils";
22
import { COLUMN_ORDER } from "./draw_columns";
33

44
export const includeGetSet = function () {
5-
6-
75
/**
86
* SETTERS
97
*/
@@ -127,9 +125,10 @@ export const includeGetSet = function () {
127125
this.setResources = function (resources) { this.vResources = resources; };
128126
this.setAdditionalHeaders = function (headers) { this.vAdditionalHeaders = headers; };
129127
this.setColumnOrder = function (order) { this.vColumnOrder = order; };
130-
128+
131129
this.setEditable = function (editable) { this.vEditable = editable; }
132130
this.setDebug = function (debug) { this.vDebug = debug; }
131+
133132
/**
134133
* GETTERS
135134
*/

0 commit comments

Comments
 (0)