diff --git a/src/css/defaults.css b/src/css/defaults.css index 10a2cc0..b32db9c 100644 --- a/src/css/defaults.css +++ b/src/css/defaults.css @@ -102,7 +102,7 @@ .gridline { - vertical-align: top; + vertical-align: middle; height: 16px; } diff --git a/src/js/common.js b/src/js/common.js index 6f1cd6b..262e6b1 100644 --- a/src/js/common.js +++ b/src/js/common.js @@ -439,10 +439,16 @@ function HoverPopupMenuHelp( myEvent, parentObj, myPopupTitle, HoverContent ) * New JQUERY Helper functions */ -function CreateMenuFunction ( szbuttonobjid, szmenuobjid ) +function CreateMenuFunction ( szbuttonobjid, szmenuobjid, bHide ) { // Popup Menu Code - var menu = $("ul" + szmenuobjid).menu().hide(); + var menu = $("ul" + szmenuobjid).menu(); + + if (bHide) { + // Hide + menu.hide(); + } + $(szbuttonobjid).button() .click(function() { // Make use of the general purpose show and position operations @@ -470,8 +476,15 @@ function CreateMenuFunction ( szbuttonobjid, szmenuobjid ) // Helper function to click a link by keypress menu.menu({ select: function(event, ui){ - if ($(ui.item).find('a').attr('href') != null) { - window.location.href = $(ui.item).find('a').attr('href'); + var szHref = $(ui.item).find('a').attr('href'); + if (szHref != null && szHref.length > 0) { + alert ( szHref ); + var szTarget = $(ui.item).find('a').attr('target'); + if (szTarget == "_top") { + window.location.href = szHref; + } else { + window.open(szHref, szTarget); + } } } }); @@ -486,9 +499,11 @@ function CreateLinkFunction ( szbuttonobjid, szlink ) { $(szbuttonobjid).button() .click(function() { - // Perform Button Click now! + if (szlink != null && szlink.length > 0) { window.location.href = szlink; - // Make sure to return false here or the click registration above gets invoked. - return false; + } + + // Make sure to return false here or the click registration above gets invoked. + return false; }) } diff --git a/src/templates/include_menu.html b/src/templates/include_menu.html index 26e8f65..95cc984 100644 --- a/src/templates/include_menu.html +++ b/src/templates/include_menu.html @@ -1,3 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + @@ -43,3 +81,4 @@
+ \ No newline at end of file diff --git a/src/templates/index.html b/src/templates/index.html index 89ae1dc..c7c2082 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -23,7 +23,7 @@
  • {DisplayName}
  • - +