Add multiple marking (multiselection) to folder widget, and dhtmlxtree:

- Attribute name: multimarking, default value: false
This commit is contained in:
Hadi Nategh 2015-08-10 15:35:44 +00:00
parent a9a246c727
commit ae95e934a8
2 changed files with 3842 additions and 3799 deletions

View File

@ -101,7 +101,13 @@ var et2_tree = et2_inputWidget.extend(
"type": "string",
"default": "",
"description": "comma-separated names of icons for a leaf, closed and opend folder (default: leaf.gif,folderClosed.gif,folderOpen.gif), images with extension get loaded from image_path, just 'image' or 'appname/image' are allowed too"
}
},
"multimarking": {
"name": "multimarking",
"type": "any",
"default": false,
"description": "Allow marking multiple nodes, default is false which means disabled multiselection, true or 'strict' activates it and 'strict' makes it strick to only same level marking"
},
},
/**
@ -218,6 +224,11 @@ var et2_tree = et2_inputWidget.extend(
widget.input.setXMLAutoLoading(egw.link(url));
widget.input.setDataMode('JSON');
}
if (widget.options.multimarking)
{
widget.input.enableMultiselection(!!widget.options.multimarking, widget.options.multimarking === 'strict');
}
},
/**

File diff suppressed because it is too large Load Diff