Browse Source

Allow batch detail window to be opened successfully from reports.

Neal Wilson 10 years ago
parent
commit
dc2d6cce39
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      config/Windows/batchdetailsnew.xml

+ 6
- 1
config/Windows/batchdetailsnew.xml View File

17
 			var compare = findChildObject(this, 'compare');
17
 			var compare = findChildObject(this, 'compare');
18
 			var edit = findChildObject(this, 'edit');
18
 			var edit = findChildObject(this, 'edit');
19
 			edit.enabled = false;
19
 			edit.enabled = false;
20
-			if(typeof(navigationwindow.loggingWindow) == "undefined") {
20
+			if("navigationwindow" in this) {
21
+				if(typeof(navigationwindow.loggingWindow) == "undefined") {
22
+					compare.enabled = false;
23
+					target.enabled = false;
24
+				}
25
+			} else {
21
 				compare.enabled = false;
26
 				compare.enabled = false;
22
 				target.enabled = false;
27
 				target.enabled = false;
23
 			}
28
 			}

Loading…
Cancel
Save