|
diff --git a/module/common/view/dropmenu.html.php b/module/common/view/dropmenu.html.php
new file mode 100644
index 0000000000..878668155f
--- /dev/null
+++ b/module/common/view/dropmenu.html.php
@@ -0,0 +1,8 @@
+getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
+debug)
+{
+ css::import($defaultTheme . 'dropmenu.css');
+ js::import($jsRoot . 'jquery/dropmenu/dropmenu.js');
+}
+?>
diff --git a/module/product/js/browse.js b/module/product/js/browse.js
index 6e4d9fba04..5fe0cf9db2 100644
--- a/module/product/js/browse.js
+++ b/module/product/js/browse.js
@@ -22,68 +22,6 @@ function changeAction(actionLink, hiddenwin)
$('form').attr('action', actionLink).submit();
}
-/**
- * Toggle sub menu.
- *
- * @param string $currentID
- * @param string position = 'right' | 'top'
- * @param bool entry
- * @access public
- * @return void
- */
-function toggleSubMenu(currentID, position, menuIndex)
-{
- if(typeof(position) == 'undefined') position = 'right';
- if(typeof(menuIndex) == 'undefined') menuIndex = 1;
- if(menuIndex)
- {
- currentMenu = $('#' + currentID).parent().parent().parent().attr('id');
- $('#' + currentID + 'Menu').bind('mouseover', function()
- {
- $('#' + currentMenu).show();
- return $('#' + currentID + 'Menu').show()
- });
-
- $('#' + currentID).parent().bind('mouseleave', function()
- {
- return $('#' + currentID + 'Menu').hide()
- });
-
- $('#' + currentID + 'Menu').bind('mouseleave', function()
- {
- return $('#' + currentID + 'Menu').hide()
- });
- }
-
- var offset = $('#' + currentID).offset();
- var topOffset = 0;
- var leftOffset = 0;
- if(position == 'top')
- {
- topOffset = offset.top - $('#' + currentID + 'Menu').height() + 'px';
- leftOffset = offset.left;
- $('#' + currentID + 'Menu').css({top: topOffset, left: leftOffset});
- }
- if(position == 'right')
- {
- if(menuIndex == 1)
- {
- topOffset = offset.top - $('#' + currentID + 'Menu').height() + $('#' + currentID).parent().height() + "px";
- leftOffset = offset.left + $('#' + currentID).parent().width();
- $('#' + currentID + 'Menu').css({top: topOffset, left: leftOffset});
- }
- else if(menuIndex == 2)
- {
- currentMenu = $('#' + currentID).parent().parent().parent().attr('id');
- rootID = currentMenu.replace('Menu', '');
- topOffset = $('#' + rootID).offset().top - $('#' + currentID + 'Menu').height() + 20;
- leftOffset = $('#' + rootID).offset().left + $('#' + rootID).parent().width() + $('#' + currentMenu).width();
- $('#' + currentID + 'Menu').css({top: topOffset, left:leftOffset});
- }
- }
- $('#' + currentID + 'Menu').toggle();
-}
-
$(function()
{
if(browseType == 'bysearch') ajaxGetSearchForm();
diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php
index d1101de867..40cce5c994 100644
--- a/module/product/view/browse.html.php
+++ b/module/product/view/browse.html.php
@@ -13,6 +13,7 @@
+
@@ -39,8 +40,8 @@ var browseType = '';
'>
+
|