Book list for merging

This commit is contained in:
Ozzieisaacs
2020-06-06 21:21:10 +02:00
parent 827b0c6e50
commit 0dd0605a1f
60 changed files with 735 additions and 427 deletions

View File

@ -15,10 +15,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* exported TableActions, RestrictionActions*/
/* exported TableActions, RestrictionActions, EbookActions*/
$(function() {
$("#books-table").bootstrapTable({
formatNoMatches: function () {
return "";
}
});
$("#domain_allow_submit").click(function(event) {
event.preventDefault();
$("#domain_add_allow").ajaxForm();
@ -213,3 +219,13 @@ function RestrictionActions (value, row) {
"</div>"
].join("");
}
/* Function for deleting books */
function EbookActions (value, row) {
return [
"<div class=\"danger remove\" listbook-id=\"" + row.id + "\" title=\"Remove\">",
"<i class=\"glyphicon glyphicon-trash\"></i>",
"</div>"
].join("");
}