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
 			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("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
 				compare.enabled = false;
24
 				compare.enabled = false;
27
 				target.enabled = false;
25
 				target.enabled = false;
28
 			}
26
 			}
27
+
29
 			var tableReference;
28
 			var tableReference;
30
 			var rowReference;
29
 			var rowReference;
31
 			var batchTime;
30
 			var batchTime;

Loading…
Cancel
Save