From bee6a3593dcf603eb614c6c73e00a7dd3078b58f Mon Sep 17 00:00:00 2001 From: James Armstong Date: Fri, 2 Aug 2024 23:31:04 -0700 Subject: [PATCH] remove spacing --- cps/editbooks.py | 3 --- cps/static/js/table.js | 1 - 2 files changed, 4 deletions(-) diff --git a/cps/editbooks.py b/cps/editbooks.py index 3bb74b25..938b19f3 100644 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -368,8 +368,6 @@ def edit_selected_books(): publishers = d.get('publishers') comments = d.get('comments') - - if len(selections) != 0: for book_id in selections: vals = { @@ -403,7 +401,6 @@ def edit_selected_books(): if comments: vals['value'] = comments edit_book_param('comments', vals) - return json.dumps({'success': True}) return "" diff --git a/cps/static/js/table.js b/cps/static/js/table.js index acc8ccfb..b80fccc7 100644 --- a/cps/static/js/table.js +++ b/cps/static/js/table.js @@ -203,7 +203,6 @@ $(function() { }); $("#edit_selected_confirm").click(function(event) { - $.ajax({ method:"post", contentType: "application/json; charset=utf-8",