From 3f5c71dfefb1499650ef3ba0561099659e31f023 Mon Sep 17 00:00:00 2001 From: caoguorui01 Date: Sat, 12 Nov 2016 21:18:46 +0800 Subject: [PATCH 1/2] assign a specific selected color and a specific back color for each node --- public/js/bootstrap-treeview.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 public/js/bootstrap-treeview.js diff --git a/public/js/bootstrap-treeview.js b/public/js/bootstrap-treeview.js old mode 100644 new mode 100755 index 7a82a2eeb..237a6bccb --- a/public/js/bootstrap-treeview.js +++ b/public/js/bootstrap-treeview.js @@ -630,7 +630,9 @@ if (this.options.selectedColor) { color = this.options.selectedColor; } - if (this.options.selectedBackColor) { + if (node.selectedBackColor) { + backColor = node.selectedBackColor; + } else if (this.options.selectedBackColor) { backColor = this.options.selectedBackColor; } } From b9ffb0b4bb8d99f9c622468fe607c9f34697c3ef Mon Sep 17 00:00:00 2001 From: caoguorui01 Date: Sat, 12 Nov 2016 21:21:35 +0800 Subject: [PATCH 2/2] assign a specific selected color and a specific back color for each node --- public/js/bootstrap-treeview.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/bootstrap-treeview.js b/public/js/bootstrap-treeview.js index 237a6bccb..6c8f90aff 100755 --- a/public/js/bootstrap-treeview.js +++ b/public/js/bootstrap-treeview.js @@ -627,7 +627,9 @@ var backColor = node.backColor; if (this.options.highlightSelected && node.state.selected) { - if (this.options.selectedColor) { + if (node.selectedColor) { + color = node.selectedColor; + }else if (this.options.selectedColor) { color = this.options.selectedColor; } if (node.selectedBackColor) {