My favorites
▼
|
Sign in
dynatree
Dynatree is a JavaScript dynamic tree view plugin for jQuery with support for persistence, keyboard, checkboxes, drag'n'drop, and lazy loading.
Project Home
Downloads
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
369
attachment: getEventTargetType_classes.patch
(1.1 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Index: src/jquery.dynatree.js
===================================================================
--- src/jquery.dynatree.js (revision 630)
+++ src/jquery.dynatree.js (working copy)
@@ -692,16 +692,19 @@
// Note: there is no check, if the event was fired on THIS node.
var tcn = event && event.target ? event.target.className : "",
cns = this.tree.options.classNames;
+ tcn = tcn.split(/\s+/);
- if( tcn === cns.title ){
+ if( tcn.indexOf(cns.title) + 1 ){
return "title";
- }else if( tcn === cns.expander ){
+ }else if( tcn.indexOf(cns.expander) + 1 ){
return "expander";
- }else if( tcn === cns.checkbox ){
- return "checkbox";
- }else if( tcn === cns.nodeIcon ){
+ }else if( tcn.indexOf(cns.checkbox) + 1 ){
+ return "checkbox";
+ }else if( tcn.indexOf(cns.nodeIcon) + 1 ){
return "icon";
- }else if( tcn === cns.empty || tcn === cns.vline || tcn === cns.connector ){
+ }else if( tcn.indexOf(cns.empty) + 1
+ || tcn.indexOf(cns.vline) +1
+ || tcn.indexOf(cns.connector) + 1 ){
return "prefix";
}else if( tcn.indexOf(cns.node) >= 0 ){
// FIX issue #93
Powered by
Google Project Hosting