mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Get dialog button callback working
This commit is contained in:
parent
516872e322
commit
a8e6b4445e
@ -212,7 +212,6 @@ app.filemanager = AppJS.extend(
|
||||
{
|
||||
et2_createWidget("dialog",{
|
||||
callback: function(button_id, value) {
|
||||
alert('button='+button_id+', value='+JSON.serialize(value));
|
||||
if (button_id == "overwrite")
|
||||
{
|
||||
value.data.confirmed = true;
|
||||
@ -229,12 +228,12 @@ app.filemanager = AppJS.extend(
|
||||
].reverse(),
|
||||
title: egw.lang('File already exists', _data.uploaded[file].name),
|
||||
//template:"/egroupware/addressbook/templates/default/edit.xet",
|
||||
value: { content: {
|
||||
value: {
|
||||
name: _data.uploaded[file].name,
|
||||
file: file,
|
||||
data: _data.uploaded[file],
|
||||
path: _data.path
|
||||
}, sel_options: {}},
|
||||
},
|
||||
message: egw.lang('Do you want to overwrite existing file <b>%1</b> in directory <b>%2</b>?', _data.uploaded[file].name, _data.path),
|
||||
dialog_type: et2_dialog.QUESTION_MESSAGE
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user