action type now defaults to 'popup'

This commit is contained in:
Andreas Stöckel 2011-04-17 19:10:46 +00:00
parent 6081a5749d
commit cbf233bccd

View File

@ -102,7 +102,7 @@ egwAction.prototype.addAction = function(_type, _id, _caption, _iconUrl,
//Get the constructor for the given action type //Get the constructor for the given action type
if (!_type) if (!_type)
{ {
_type = "default"; _type = "popup";
} }
// Only allow adding new actions, if this action class allows it. // Only allow adding new actions, if this action class allows it.
@ -148,7 +148,7 @@ egwAction.prototype.updateActions = function(_actions)
if (!action) if (!action)
{ {
if (typeof elem.type == "undefined") if (typeof elem.type == "undefined")
elem.type = "default"; elem.type = "popup";
var constructor = null; var constructor = null;