summaryrefslogtreecommitdiff
path: root/swat/scripting/client
diff options
context:
space:
mode:
authorDeryck Hodge <deryck@samba.org>2005-09-14 21:48:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:09 -0500
commit3afbbc7baee86c422c04fc7909eb70a47b76cb64 (patch)
treebe6b0db8910fce94d17590dc8b41417b492d4820 /swat/scripting/client
parentf7451dbaefa1a6da730a7a024e299dd106e7d264 (diff)
downloadsamba-3afbbc7baee86c422c04fc7909eb70a47b76cb64.tar.gz
samba-3afbbc7baee86c422c04fc7909eb70a47b76cb64.tar.bz2
samba-3afbbc7baee86c422c04fc7909eb70a47b76cb64.zip
r10228: Reorganizing a bit, trying to simplify. This is an attempt
to find what's going wrong in IE formatting. This is some better, but still IE needs help. deryck (This used to be commit e7015c19374e1db8165790c623cb45e33b0a92df)
Diffstat (limited to 'swat/scripting/client')
-rw-r--r--swat/scripting/client/desktop.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/swat/scripting/client/desktop.js b/swat/scripting/client/desktop.js
index e8f10f6efa..9e1a342936 100644
--- a/swat/scripting/client/desktop.js
+++ b/swat/scripting/client/desktop.js
@@ -5,10 +5,6 @@
released under the GNU GPL Version 2 or later
*/
-
-// The global widget we attach everything to
-var w = new QxWidget();
-
/* Qooxdoo's browser sniffer doesn't distinguish IE version.
We'll cover IE 6 for now, but these checks need to be
revisited for fuller browser coverage. */
@@ -122,53 +118,4 @@ Window.small = SmallWindow;
Window.standard = StandardWindow;
Window.large = LargeWindow;
-function contextMenu(e)
-{
- var t = e.getTarget()
- var tObj = t.getHtmlAttribute("class")
-
- if (tObj == 'QxWidget') {
- clientContextMenu(e);
- } else if (tObj == 'QxWindowPane') {
- windowContextMenu(t, e);
- }
-}
-
-
-window.application.main = function()
-{
- with(w) {
- setTop(0);
- setLeft(0);
- setWidth(docX());
- setHeight(docY());
- }
-
- var doc = this.getClientWindow().getClientDocument();
- doc.addEventListener("contextmenu", contextMenu);
- doc.add(w);
-
- var bar = new QxMenuBar;
- with (bar) {
- setBottom(0);
- setLeft(0);
- setWidth("100%");
- setHeight(25);
- setBackgroundColor("ThreeDFace");
- }
-
- var start = new QxMenuButton("START");
- start.addEventListener("click", function() {
- startMenu();
- });
- bar.add(start);
-
- w.add(bar);
-}
-
-window.onresize = function()
-{
- w.setWidth(docX());
- w.setHeight(docY());
-}