Add ability to specify which actions are available for the no results placeholder

This commit is contained in:
Nathan Gray
2013-03-20 23:09:04 +00:00
parent ca5d97f85c
commit f4fe5cf8b6
2 changed files with 13 additions and 2 deletions

View File

@ -210,7 +210,17 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(
}
// No UID, so return a filtered list of actions that doesn't need a UID
var links = ["add"];
var links = [];
try {
links = this._widget.options.settings.placeholder_actions;
} catch (e) {
}
// Default
if(typeof links == "undefined")
{
links = ["add"];
}
return links;
},