Skip to content
Snippets Groups Projects
Commit 4747e981 authored by minsoc's avatar minsoc
Browse files

minsoc_hotline_109030 fix error on amend commit

parent ffebe08b
Branches
Tags
3 merge requests!3589Hotline,!3536WIP: fix id on authority picker,!3516Minsoc prod
Pipeline #10312 failed with stage
in 39 minutes and 51 seconds
......@@ -42,8 +42,7 @@ pick_url:' . json_encode($view->url($this->_getParams(), null, true)) .'
. $view->tag('div',
$view->formHidden($input_id, $this->_element->getValue())
. $view->tag('span', $this->_element->getRecordLabel(), ['id' => 'authority_subject_selected_value_'.$this->_element->getId()])
. $view->tag('span', $this->_element->getRecordLabel(), ['id' => 'authority_subject_selected_value_'.$input_id])
. $view->button_New((new Class_Entity)
->setText($this->_element->getPickButtonLabel())
->setAttribs(['onclick' => 'return false;']))
......
......@@ -47,6 +47,7 @@ class ZendAfi_View_Helper_AuthoritySearch_Record extends ZendAfi_View_Helper_Bas
->setAttribs(['onclick' => 'return false;',
'data-record' => $record->getId(),
'data-label' => $label,
'id' => 'button_select_authority_'.$select_for,
'class' => 'authority_pick']));
}
......
......@@ -29,7 +29,8 @@
var selected_value = this.find('#authority_subject_selected_value_'+options.name);
opacDialogRegisterOnOpen(function() {
$('#opac-dialog button.authority_pick').click(on_pick);
if ($('#button_select_'+options.name))
$('#button_select_'+options.name).click(on_pick);
});
pick_button.click(function(e) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment