From 415dc0af205e5f9e0a6c0c359efa280882fd4b78 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Fri, 9 Jun 2017 22:41:06 +0200 Subject: [PATCH] Fixed edit button not working the second time --- static/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/script.js b/static/script.js index 337a089..6bbc880 100644 --- a/static/script.js +++ b/static/script.js @@ -156,8 +156,10 @@ function save(partID) { }); - end_edit(); + $('#edit-button').click(function() { + init_edit(partID); + }); } function text_filter(string) {