← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13116: minor change

 

------------------------------------------------------------
revno: 13116
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-12-03 10:00:25 +0100
message:
  minor change
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.js	2013-12-03 08:45:42 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.js	2013-12-03 09:00:25 +0000
@@ -121,13 +121,14 @@
 
 dhis2.contextmenu.disable = function() {
   var config = dhis2.contextmenu.config;
-
   var $list = $('#' + config.listId);
   var $menu = $('#' + config.menuId);
+  $list.find('td').removeClass(config.menuItemActiveClass);
 
   if( $menu.is(":visible") ) {
     $menu.hide();
+    return true;
   }
 
-  $list.find('td').removeClass(config.menuItemActiveClass);
+  return false;
 };