diff --git a/assets/migrations/000014_create_bm_item_shares_table.up.sql b/assets/migrations/000014_create_bm_item_shares_table.up.sql index 5752507..5dffb96 100644 --- a/assets/migrations/000014_create_bm_item_shares_table.up.sql +++ b/assets/migrations/000014_create_bm_item_shares_table.up.sql @@ -2,8 +2,7 @@ CREATE TABLE "bm_item_shares" ( "id" INTEGER, "token" TEXT NOT NULL UNIQUE, "item_id" INTEGER DEFAULT '', - "read" INTEGER DEFAULT '', - "update" INTEGER DEFAULT '', + "permission_edit" INTEGER DEFAULT '', "start_datetime" TEXT DEFAULT '', "end_datetime" TEXT DEFAULT '', "password" TEXT DEFAULT '', diff --git a/assets/static/js/main.js b/assets/static/js/main.js index 5d3dcd2..41f1663 100644 --- a/assets/static/js/main.js +++ b/assets/static/js/main.js @@ -261,6 +261,11 @@ document.addEventListener("DOMContentLoaded", function(event){ document.getElementById("dialog").showModal(); }); + document.body.addEventListener("closeModalDialog", function(evt){ + document.getElementById('dialog').close(); + document.getElementById('dialog').remove(); + }); + document.body.addEventListener("quickboxNoteClear", function(evt){ document.getElementById("quickbox-notetext").value = '' }); diff --git a/assets/templates/items/share.tmpl b/assets/templates/items/share.tmpl index cc33488..f81d4d5 100644 --- a/assets/templates/items/share.tmpl +++ b/assets/templates/items/share.tmpl @@ -11,13 +11,13 @@
- +
- +
- +