Browse Source

Allow batch detail window to be opened from reports.

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

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

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

Loading…
Cancel
Save