creating and using an app-specific egw object

This commit is contained in:
Ralf Becker
2013-10-07 16:53:13 +00:00
parent 6950fb0cc9
commit a6311fa1a3
6 changed files with 60 additions and 44 deletions

View File

@ -360,7 +360,7 @@ app.home = AppJS.extend(
}
if(target_action == null)
{
var link = et2_createWidget('link-entry', {label: egw.lang('Add')}, this.portlet_container);
var link = et2_createWidget('link-entry', {label: this.egw.lang('Add')}, this.portlet_container);
var dialog = et2_dialog.show_dialog(
function(button_id) {
if(button_id == et2_dialog.CANCEL_BUTTON) return;
@ -380,7 +380,7 @@ app.home = AppJS.extend(
widget._process_edit(button_id,{list: new_list});
},
'Add',
egw.lang('Add'), {},
this.egw.lang('Add'), {},
et2_dialog.BUTTONS_OK_CANCEL
);
dialog.set_message(link.getDOMNode());