summaryrefslogtreecommitdiff
path: root/min_selfservice/js/menu.js
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-01-16 12:14:54 -0500
committerChristopher Burger <burgerc@freeside.biz>2018-09-11 11:40:59 -0400
commit76a893c2187f59e7fdb9bc8282b780efd9dd8504 (patch)
treebbdbab4dc1df7ff44fa607162a00f38ab74a1b4e /min_selfservice/js/menu.js
parente55e22e00eba74f2713b52fccbbb380f454531f4 (diff)
RT# 39340 - Created minimal selfservice that only allows payments to be made, authorization is based on ip and mac address. This is not done yet need to write routine to get mac address from radius server based on ip address.
Diffstat (limited to 'min_selfservice/js/menu.js')
-rw-r--r--min_selfservice/js/menu.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/min_selfservice/js/menu.js b/min_selfservice/js/menu.js
new file mode 100644
index 000000000..30e481621
--- /dev/null
+++ b/min_selfservice/js/menu.js
@@ -0,0 +1,17 @@
+$(document).ready(function() {
+ $('#menu_ul > li').hover(function(){
+ $('a:first', this).addClass('hover');
+ $('ul:first', this).show();
+ if ($('.current_menu:first', this).length == 0) {
+ $('img[src*="dropdown_arrow_white"]', this).show();
+ $('img[src*="dropdown_arrow_grey"]', this).hide();
+ }
+ }, function(){
+ $('ul:first', this).hide();
+ $('a:first', this).removeClass('hover');
+ if ($('.current_menu:first', this).length == 0) {
+ $('img[src*="dropdown_arrow_white"]', this).hide();
+ $('img[src*="dropdown_arrow_grey"]', this).show();
+ }
+ });
+});