mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
Default placeholder actions to "add" if not otherwise specified. Allows 'Add' action by default when no records shown in nextmatch.
This commit is contained in:
parent
83741673c3
commit
52d339305e
@ -219,7 +219,7 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider,
|
|||||||
// No UID, so return a filtered list of actions that doesn't need a UID
|
// No UID, so return a filtered list of actions that doesn't need a UID
|
||||||
var links = [];
|
var links = [];
|
||||||
try {
|
try {
|
||||||
links = this._widget.options.settings.placeholder_actions;
|
links = typeof this._widget.options.settings.placeholder_actions != 'undefined' ? this._widget.options.settings.placeholder_actions : ["add"];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user