mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Localization for in-place edition of 1:n linksets
SVN:trunk[2298]
This commit is contained in:
@@ -142,7 +142,15 @@ class UILinksWidgetDirect
|
||||
$oPage->table($aAttribs, $aData);
|
||||
$oPage->add('</td></tr></table>'); //listcontainer
|
||||
$sInputName = $sFormPrefix.'attr_'.$this->sAttCode;
|
||||
$oPage->add_ready_script("$('#{$this->sInputid}').directlinks({class_name: '$this->sClass', att_code: '$this->sAttCode', input_name:'$sInputName' });");
|
||||
$aLabels = array(
|
||||
'delete' => Dict::S('UI:Button:Delete'),
|
||||
// 'modify' => 'Modify...' ,
|
||||
'creation_title' => Dict::Format('UI:CreationTitle_Class', MetaModel::GetName($this->sLinkedClass)),
|
||||
'create' => Dict::Format('UI:ClickToCreateNew', MetaModel::GetName($this->sLinkedClass)),
|
||||
);
|
||||
$sSubmitUrl = utils::GetAbsoluteUrlAppRoot().'pages/ajax.render.php';
|
||||
$sJSONLabels = json_encode($aLabels);
|
||||
$oPage->add_ready_script("$('#{$this->sInputid}').directlinks({class_name: '$this->sClass', att_code: '$this->sAttCode', input_name:'$sInputName', labels: $sJSONLabels, sumit_to: '$sSubmitUrl' });");
|
||||
}
|
||||
|
||||
public function GetObjectCreationDlg(WebPage $oPage, $sProposedRealClass = '')
|
||||
|
||||
@@ -11,7 +11,7 @@ $(function()
|
||||
input_name: '',
|
||||
class_name: '',
|
||||
att_code: '',
|
||||
submit_to: GetAbsoluteUrlAppRoot()+'pages/ajax.render.php',
|
||||
submit_to: '../pages/ajax.render.php',
|
||||
submit_parameters: {},
|
||||
labels: { 'delete': 'Delete',
|
||||
modify: 'Modify...' ,
|
||||
|
||||
Reference in New Issue
Block a user