summaryrefslogtreecommitdiff
path: root/addWindow.html
diff options
context:
space:
mode:
authorArman <[email protected]>2018-08-02 16:50:59 -0700
committerArman <[email protected]>2018-08-02 16:50:59 -0700
commit7d5a0696ccc642db0d14aae8677ecada40bf85d1 (patch)
tree1bbbcf2f4c4a3a733326ac2401375f8d891cb2f1 /addWindow.html
parentdialog box for adding items (diff)
downloadlauncher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.tar.xz
launcher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.zip
inital commit
Diffstat (limited to 'addWindow.html')
-rw-r--r--addWindow.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/addWindow.html b/addWindow.html
index 7d9d347..747c53c 100644
--- a/addWindow.html
+++ b/addWindow.html
@@ -2,8 +2,6 @@
<html lang="en">
<head>
<title>Add Shopping List Item</title>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
</head>
<body>
<div class="container">
@@ -26,7 +24,12 @@
function submitForm(e) {
e.preventDefault();
const item = document.querySelector("#item").value;
+ if (item.length == 0) {
+ alert("null value");
+ }
+ else {
ipcRenderer.send('item:add', item);
+ }
}
</script>