summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-02-12 23:43:54 +0100
committerAndrew Branson <andrew.branson@cern.ch>2013-02-12 23:43:54 +0100
commitde75c108ac018ad619194d1c81494b86106ba74a (patch)
treeea0bd38434e8587643b7e98e0a79813d9a9ea127 /src
parent86b681418ffe9f8fde47af6dbdb7add0ac7f85a2 (diff)
GUI calls throw Errors in headless configurations. Commented out for
now.
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/boot/SC/InstantiateItem.xml6
-rw-r--r--src/main/resources/boot/SC/LocalObjectDefCreator.xml6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main/resources/boot/SC/InstantiateItem.xml b/src/main/resources/boot/SC/InstantiateItem.xml
index 85005cd..1ad7b6c 100644
--- a/src/main/resources/boot/SC/InstantiateItem.xml
+++ b/src/main/resources/boot/SC/InstantiateItem.xml
@@ -20,9 +20,9 @@
}
// If this script is running in the Cristal GUI, open the new item.
- try {
- Packages.com.c2kernel.gui.MainFrame.treeBrowser.push(new DomainPath(domPath+"/"+name));
- } catch (e) { }
+ //try {
+ // Packages.com.c2kernel.gui.MainFrame.treeBrowser.push(new DomainPath(domPath+"/"+name));
+ //} catch (e) { }
]]></script>
</cristalscript>
diff --git a/src/main/resources/boot/SC/LocalObjectDefCreator.xml b/src/main/resources/boot/SC/LocalObjectDefCreator.xml
index 4e253f8..18de872 100644
--- a/src/main/resources/boot/SC/LocalObjectDefCreator.xml
+++ b/src/main/resources/boot/SC/LocalObjectDefCreator.xml
@@ -47,9 +47,9 @@
newItem.requestAction(agent.getSystemKey(), "workflow/domain/EditDefinition", Transitions.DONE, newObj);
// If this script is running in the Cristal GUI, open the new item.
- var tree = Packages.com.c2kernel.gui.MainFrame.treeBrowser;
- if (tree != null) // open new item in the gui
- tree.push(newPath);
+ //var tree = Packages.com.c2kernel.gui.MainFrame.treeBrowser;
+ //if (tree != null) // open new item in the gui
+ // tree.push(newPath);
]]></script>
</cristalscript>