From 0540e340eb6dbb15a884e25a585460bc68c67c0b Mon Sep 17 00:00:00 2001 From: Patrick Sun Date: Sun, 18 Oct 2020 17:47:21 +1100 Subject: [PATCH] summary menu worked --- front-end/js/common.js | 2 +- front-end/js/summary.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/front-end/js/common.js b/front-end/js/common.js index 37564b9..884dcb5 100644 --- a/front-end/js/common.js +++ b/front-end/js/common.js @@ -12,7 +12,7 @@ var top_toolbar = { "value": "SFM", "icon": "wxi-dots", "submenu": [ - { "value": "Summary", "icon": "wxi-calendar" , "href": "summary.html"}, + { "value": "Summary", "icon": "wxi-calendar" , "href": "javascript:show_summary();"}, { "value": "Pending Jobs", "icon": "mdi mdi-notebook-check", "href": "pending_job.html" }, { "value": "Mass Mailing", "icon": "mdi mdi-email", "href": "mass_mailing.html" }, { "$template": "Separator" }, diff --git a/front-end/js/summary.js b/front-end/js/summary.js index 03570dd..c7769bc 100644 --- a/front-end/js/summary.js +++ b/front-end/js/summary.js @@ -64,3 +64,6 @@ webix.ready(function(){ initTopMenu($$('summary_layout'), $$('topMenu')); }); +function show_summary() { + alert("ok"); +} \ No newline at end of file