mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-30 23:03:02 +00:00 
			
		
		
		
	Make changes suggested by codacy
This commit is contained in:
		| @@ -121,15 +121,15 @@ $(function() { | |||||||
|         }); |         }); | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     $('#bookDetailsModal') |     $("#bookDetailsModal") | ||||||
|       .on('show.bs.modal', function(e) { |       .on("show.bs.modal", function(e) { | ||||||
|         var $modalBody = $(this).find('.modal-body'); |         var $modalBody = $(this).find(".modal-body"); | ||||||
|         $.get(e.relatedTarget.href).done(function(content) { |         $.get(e.relatedTarget.href).done(function(content) { | ||||||
|           $modalBody.html(content); |           $modalBody.html(content); | ||||||
|         }); |         }); | ||||||
|       }) |       }) | ||||||
|       .on('hidden.bs.modal', function() { |       .on("hidden.bs.modal", function() { | ||||||
|         $(this).find('.modal-body').html('...'); |         $(this).find(".modal-body").html("..."); | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|     $(window).resize(function(event) { |     $(window).resize(function(event) { | ||||||
|   | |||||||
| @@ -412,8 +412,8 @@ def timestamptodate(date, fmt=None): | |||||||
|  |  | ||||||
|  |  | ||||||
| @app.template_filter('yesno') | @app.template_filter('yesno') | ||||||
| def yesno(str, yes, no): | def yesno(value, yes, no): | ||||||
|     return yes if str else no |     return yes if value else no | ||||||
|  |  | ||||||
|  |  | ||||||
| def admin_required(f): | def admin_required(f): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Rehm
					Jonathan Rehm