From 52d339305ebb4d560dc1128c8f564131f8af8e8f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 1 Oct 2013 07:40:20 +0000 Subject: [PATCH] Default placeholder actions to "add" if not otherwise specified. Allows 'Add' action by default when no records shown in nextmatch. --- etemplate/js/et2_extension_nextmatch_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch_controller.js b/etemplate/js/et2_extension_nextmatch_controller.js index eec99b26ae..cf15a005bc 100644 --- a/etemplate/js/et2_extension_nextmatch_controller.js +++ b/etemplate/js/et2_extension_nextmatch_controller.js @@ -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 var links = []; 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) { }