Commit d799b859 authored by Jonathan Rehm's avatar Jonathan Rehm

Make changes suggested by codacy

parent 649579ec
......@@ -121,15 +121,15 @@ $(function() {
});
});
$('#bookDetailsModal')
.on('show.bs.modal', function(e) {
var $modalBody = $(this).find('.modal-body');
$("#bookDetailsModal")
.on("show.bs.modal", function(e) {
var $modalBody = $(this).find(".modal-body");
$.get(e.relatedTarget.href).done(function(content) {
$modalBody.html(content);
});
})
.on('hidden.bs.modal', function() {
$(this).find('.modal-body').html('...');
.on("hidden.bs.modal", function() {
$(this).find(".modal-body").html("...");
});
$(window).resize(function(event) {
......
......@@ -412,8 +412,8 @@ def timestamptodate(date, fmt=None):
@app.template_filter('yesno')
def yesno(str, yes, no):
return yes if str else no
def yesno(value, yes, no):
return yes if value else no
def admin_required(f):
......
Markdown is supported
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