Added buttons to remove document from search results

This commit is contained in:
Georgy Litvinov 2021-09-28 18:10:46 +02:00
parent 214c23a3eb
commit 15f01d5e37
4 changed files with 19 additions and 2 deletions

View file

@ -235,6 +235,7 @@
}
});
}
createRemoveButtons();
}
</script>

View file

@ -3511,6 +3511,19 @@ label.switch >.collapseTextControl >img {
text-decoration: none;
cursor: pointer;
}
.removeDocFromSearch {
border-inline-width: thin;
border-top-width: thin;
border-bottom-width: thin;
border-color: #8B4513;
border-inline-style: solid;
border-top-style: solid;
border-bottom-style: solid;
margin-left: 0.4em;
padding: 0.0em 0.2em 0.1em 0.2em;
}
/* -------------------------------------------------> */
/* FONTS --------------------------------> */
/* -------------------------------------------------> */

View file

@ -106,4 +106,4 @@ organizer_role = Organizer Role
faculty_memberships = Faculty Memberships
edit_mailing_address = Edit Mailing Address
add_capitalized = Add
remove_doc_from_search_results=Удалить из результатов поиска

View file

@ -219,7 +219,10 @@
var name = button.textContent;
var a = document.createElement('a');
a.setAttribute('href',"javascript:excludeDocByURI(\'" + escapeQutes(name) + "\',\'" + escapeQutes(uri) + "\');");
a.textContent = " Удалить документ из поиска";
a.setAttribute('class',"removeDocFromSearch");
a.textContent = "${i18n().remove_doc_from_search_results}" ;
button.appendChild(a);
}