Browse Source

Fixes #692 Fix if condition for New and New Range to act on "Computer" type only.

This is a side effect of the fix for bugzilla bug 81208. New and New range
for Computer acts differently from the New for the other types but all
types were being handled by that piece of code causing the menu item not
to work. Fixed the if condition to act on Computer type only.

Signed-off-by: Sridhar Meda <sridhar.meda@lexisnexis.com>
Sridhar Meda 13 years ago
parent
commit
c576e23707
1 changed files with 1 additions and 1 deletions
  1. 1 1
      esp/files/scripts/configmgr/configmgr.js

+ 1 - 1
esp/files/scripts/configmgr/configmgr.js

@@ -2926,7 +2926,7 @@ function onMenuItemClickHandleComputer(p_sType, p_aArgs, p_oValue) {
   if (menuItemName === "New" || menuItemName === "New Range...")
     oper = "New";
 
-  if (menuItemName === "New Range..." || menuItemName === "New") {
+  if (parentName === "Computers" && ( menuItemName === "New Range..." || menuItemName === "New")) {
     for (i = 0; i < recSet.getLength(); i++) {
       var arr = recSet.getRecord(i).getData('domain_extra');
       if (YAHOO.lang.isArray(arr))