|
@@ -846,17 +846,18 @@
|
|
|
|
|
|
scwin.grdSearchCont(docId, name);
|
|
|
|
|
|
+ var colCheck = grdData4.getTotalCol();
|
|
|
+
|
|
|
if(dsContextList.getTotalRow() == 0){
|
|
|
contextGroup1.hide();
|
|
|
}else if(dsContextList.getTotalRow() > 0){
|
|
|
|
|
|
- if(info.colIndex != 1){
|
|
|
+ if(info.colIndex != colCheck - 1){
|
|
|
contextGroup1.show();
|
|
|
contextGroup1.setPosition( left + 700 , top + 500);
|
|
|
- }else if(info.colIndex == 1){
|
|
|
+ }else if(info.colIndex == colCheck - 1){
|
|
|
contextGroup1.show();
|
|
|
contextGroup1.setPosition( left + 280 , top + 500);
|
|
|
- //contextGroup1.setPosition( left - 460 , top + 920);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -886,14 +887,16 @@
|
|
|
|
|
|
scwin.grdSearchCont(docId, name);
|
|
|
|
|
|
+ var colCheck = grdData5.getTotalCol();
|
|
|
+
|
|
|
if(dsContextList.getTotalRow() == 0){
|
|
|
contextGroup1.hide();
|
|
|
}else if(dsContextList.getTotalRow() > 0){
|
|
|
|
|
|
- if(info.colIndex != 7){
|
|
|
+ if(info.colIndex != colCheck - 1){
|
|
|
contextGroup1.show();
|
|
|
contextGroup1.setPosition( left - 35 , top + 920);
|
|
|
- }else if(info.colIndex == 7){
|
|
|
+ }else if(info.colIndex == colCheck - 1){
|
|
|
contextGroup1.show();
|
|
|
contextGroup1.setPosition( left - 460 , top + 920);
|
|
|
}
|