mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
Importexport: Fix clicking icon from list did not open correct url
This commit is contained in:
parent
09b313571c
commit
47243d1706
@ -203,6 +203,27 @@ class ImportExportApp extends EgwApp
|
||||
widget.set_value(value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Open a specific import/export definition dialog by clicking on the icon from the list
|
||||
* @param widget
|
||||
*/
|
||||
open_definition(event, widget)
|
||||
{
|
||||
const mgr = widget.getArrayMgr("content");
|
||||
const data = mgr.getEntry(mgr.perspectiveData.row) || {};
|
||||
const type = data.type || "";
|
||||
const application = data.application || "";
|
||||
const definition_id = data.definition_id || "";
|
||||
this.egw.openPopup(
|
||||
this.egw.link("/index.php", {
|
||||
menuaction: "importexport.importexport_" + type + "_ui." + type + "_dialog",
|
||||
appname: application,
|
||||
definition: definition_id
|
||||
}),
|
||||
850, 440
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
app.classes.importexport = ImportExportApp;
|
||||
|
@ -20,7 +20,8 @@
|
||||
<et2-nextmatch-header-account id="owner" emptyLabel="Owner"/>
|
||||
</row>
|
||||
<row class="row $row_cont[class]">
|
||||
<et2-image src="${row_cont[type]}" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_${row_cont[type]}_ui.${row_cont[type]}_dialog&appname=${row_cont[application]}&definition=${row_cont[definition_id]}'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" class="lr_padding button" noLang="1"></et2-image>
|
||||
<et2-image src="${row_cont[type]}" onclick="app.importexport.open_definition"
|
||||
class="lr_padding button" noLang="1"></et2-image>
|
||||
<et2-description id="${row}[name]" class="lr_padding" noLang="1"></et2-description>
|
||||
<et2-description id="${row}[application]" class="lr_padding"></et2-description>
|
||||
<et2-select-account id="${row}[allowed_users]" readonly="true" rows="5" class="lr_padding" multiple="1" placeholder="Private" noLang="1"></et2-select-account>
|
||||
|
Loading…
Reference in New Issue
Block a user