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",{
|
et2_createWidget("dialog",{
|
||||||
callback: function(button_id, value) {
|
callback: function(button_id, value) {
|
||||||
alert('button='+button_id+', value='+JSON.serialize(value));
|
|
||||||
if (button_id == "overwrite")
|
if (button_id == "overwrite")
|
||||||
{
|
{
|
||||||
value.data.confirmed = true;
|
value.data.confirmed = true;
|
||||||
@ -229,12 +228,12 @@ app.filemanager = AppJS.extend(
|
|||||||
].reverse(),
|
].reverse(),
|
||||||
title: egw.lang('File already exists', _data.uploaded[file].name),
|
title: egw.lang('File already exists', _data.uploaded[file].name),
|
||||||
//template:"/egroupware/addressbook/templates/default/edit.xet",
|
//template:"/egroupware/addressbook/templates/default/edit.xet",
|
||||||
value: { content: {
|
value: {
|
||||||
name: _data.uploaded[file].name,
|
name: _data.uploaded[file].name,
|
||||||
file: file,
|
file: file,
|
||||||
data: _data.uploaded[file],
|
data: _data.uploaded[file],
|
||||||
path: _data.path
|
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),
|
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
|
dialog_type: et2_dialog.QUESTION_MESSAGE
|
||||||
});
|
});
|
||||||
@ -587,4 +586,4 @@ app.filemanager = AppJS.extend(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user