added a couple more default icons similar to et2_button, and fixed actions with just a caption string where not working with toolbar

This commit is contained in:
Ralf Becker 2014-03-06 18:33:27 +00:00
parent dbbad57f90
commit ea04a556ca
3 changed files with 14 additions and 3 deletions

View File

@ -344,7 +344,16 @@ egwAction.prototype.defaultIcons = {
copy: 'copy',
move: 'move',
cut: 'cut',
paste: 'editpaste'
paste: 'editpaste',
save: 'save',
apply: 'apply',
cancel: 'cancel',
'continue': 'continue',
next: 'continue',
finish: 'finish',
back: 'back',
previous: 'back',
close: 'close'
};
/**
@ -368,8 +377,10 @@ egwAction.prototype.updateActions = function(_actions, _app)
{
var elem = _actions[i];
if (typeof elem == "string") elem = { caption: elem };
if (typeof elem == "string")
{
_actions[i] = elem = { caption: elem };
}
if (typeof elem == "object")
{
// use attr name as id, if none given

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B