From c31c5e70588a4cdb1af4b54a7dc82f4e5876782c Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Tue, 12 Dec 2017 16:41:59 -0800 Subject: [PATCH] Split javascript into several more managable pieces --- index.html | 7 +- js/addBookmarks.js | 107 ++++++++++++++ js/editBookmarks.js | 6 + js/importExport.js | 98 +++++++++++++ js/loadBookmarks.js | 139 ++++++++++++++++++ js/main.js | 347 -------------------------------------------- 6 files changed, 356 insertions(+), 348 deletions(-) create mode 100644 js/addBookmarks.js create mode 100644 js/editBookmarks.js create mode 100644 js/importExport.js create mode 100644 js/loadBookmarks.js diff --git a/index.html b/index.html index 5272497..3bb1053 100644 --- a/index.html +++ b/index.html @@ -66,7 +66,7 @@
@@ -183,7 +183,12 @@ + + + + + diff --git a/js/addBookmarks.js b/js/addBookmarks.js new file mode 100644 index 0000000..dbfde86 --- /dev/null +++ b/js/addBookmarks.js @@ -0,0 +1,107 @@ +$(document).ready(function () { + $("#newBookmarkModal").on("shown.bs.modal", function () { + var combo = $("#newBookmarkGroup"); + combo.empty(); + combo.append($("