mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
Fix list portlet not adding new links
This commit is contained in:
parent
4d2c969b8f
commit
336490a6ab
@ -354,7 +354,9 @@ app.home = AppJS.extend(
|
|||||||
var link = et2_createWidget('link-entry', {label: egw.lang('Add')}, this.portlet_container);
|
var link = et2_createWidget('link-entry', {label: egw.lang('Add')}, this.portlet_container);
|
||||||
var dialog = et2_dialog.show_dialog(
|
var dialog = et2_dialog.show_dialog(
|
||||||
function(button_id) {
|
function(button_id) {
|
||||||
widget._process_edit(button_id,{list: widget.options.settings.list || {}, add: link.getValue()});
|
var new_list = widget.options.settings.list || [];
|
||||||
|
new_list.push(link.getValue());
|
||||||
|
widget._process_edit(button_id,{list: new_list || [],add: link.getValue()});
|
||||||
link.destroy();
|
link.destroy();
|
||||||
},
|
},
|
||||||
'Add',
|
'Add',
|
||||||
|
Loading…
Reference in New Issue
Block a user