[Mapbender-commits] r8830 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 8 07:13:01 PDT 2014
Author: hwbllmnn
Date: 2014-05-08 07:13:01 -0700 (Thu, 08 May 2014)
New Revision: 8830
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
added missing hover functionality to context menus
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-08 13:55:55 UTC (rev 8829)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-08 14:13:01 UTC (rev 8830)
@@ -163,9 +163,6 @@
stop: that.deactivate
});
- // $('.digitize-contextmenu .digitize-close').live('click', function() {
- // $(this).parents('.digitize-contextmenu').menu('destroy').remove();
- // });
$('li:has(.digitize-close)').live('click', function() {
$(this).parent().menu('destroy').remove();
});
@@ -176,14 +173,20 @@
var menu = $(folderMenu);
$(document.body).append(menu);
var pos = $(this).offset();
- menu.css({position: 'absolute', top: pos.top, left: pos.left}).menu();
+ menu.css({position: 'absolute', top: pos.top, left: pos.left}).menu()
+ .children().addClass('ui-menu-item')
+ .hover(function() {$(this).addClass('ui-state-hover'); },
+ function() {$(this).removeClass('ui-state-hover'); });
return false;
});
$('li[title="' + url + '"] > ul > li').live('contextmenu', function() {
var menu = $(geomMenu);
$(document.body).append(menu);
var pos = $(this).offset();
- menu.css({position: 'absolute', top: pos.top, left: pos.left}).menu();
+ menu.css({position: 'absolute', top: pos.top, left: pos.left}).menu()
+ .children().addClass('ui-menu-item')
+ .hover(function() {$(this).addClass('ui-state-hover'); },
+ function() {$(this).removeClass('ui-state-hover'); });
return false;
});
});
More information about the Mapbender_commits
mailing list