소스 검색

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 년 전
부모
커밋
c576e23707
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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))