Skip to content
Snippets Groups Projects
Commit c5cd967b authored by efalcy's avatar efalcy
Browse files

hotline #109030 : minsoc : delete 'not selected' display

parent aab535be
Branches
Tags
3 merge requests!3589Hotline,!3534Minsoc hotline 109030 delete not selected keywords search,!3516Minsoc prod
Pipeline #10132 passed with stage
in 45 minutes and 12 seconds
......@@ -43,7 +43,7 @@ class ZendAfi_Form_Element_Authority extends Zend_Form_Element_Xhtml {
public function getRecordLabel() {
return ($id = $this->getValue()) && ($record = Class_Notice::find($id))
? $record->getTitrePrincipal()
: $this->_('non sélectionné');
: '';
}
......
......@@ -45,7 +45,7 @@
reset_button.click(function(e) {
e.preventDefault();
value_holder.val('');
label_span.html('non sélectionné');
label_span.html('');
});
function on_pick(e) {
......
......@@ -21,7 +21,7 @@
function call_authority_picker_for(options) {
var insertion_point = $('<div>\
<input type="hidden" id="authority_subject" name="authority_subject">\
<span>non sélectionné</span>\
<span></span>\
<button class="button new" onclick="return false;" title="" data-url="/recherche/add">Choisir</button>\
<button class="button undo" onclick="return false;" title="Annuler mes modifications" data-url="/recherche/avancee">Annuler</button>\
</div>');
......@@ -78,7 +78,7 @@ test('on empty', function () {
'reset button is clickable in ' + insertion_point.html());
equal(insertion_point.find('input').first().val(), '', 'value should be empty' + insertion_point.html());
equal(insertion_point.find('span').first().html(), 'non sélectionné', 'label should be default' + insertion_point.html());
equal(insertion_point.find('span').first().html(), '', insertion_point.html());
$('button.authority_pick').first().click();
......
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