- this.form = new Element("form");
- this.inputbox = new Element("input", {styles: {border: 0, width: "100%"}});
- this.inputbox.addClass("input");
-
- this.inputbox.addEvent("focus", function() {
- /* TODO: bring to top */
- //alert(":O");
- //alert(this.windowObject.windowEl);
- //MochaUI.focusWindow.pass(this.windowObject.windowEl, this.windowObject);
- //this.windowObject.focusWindow();
- this.parentObject.selectWindow(this);
- }.bind(this));
-
- this.form.addEvent("submit", function(e) {
- new Event(e).stop();
-
- this.client.exec(this.inputbox.value);
- this.inputbox.value = "";
- }.bind(this));
- //this.container.appendChild(form);
- this.form.appendChild(this.inputbox);
+ var toolbar = type != WINDOW_CUSTOM && type != WINDOW_CONNECT;
+
+ if(toolbar) {
+ this.form = new Element("form");
+ this.inputbox = new Element("input", {styles: {border: 0, width: "100%"}});
+ this.inputbox.addClass("input");
+
+ this.inputbox.addEvent("focus", function() {
+ /* TODO: bring to top */
+ //alert(":O");
+ //alert(this.windowObject.windowEl);
+ //MochaUI.focusWindow.pass(this.windowObject.windowEl, this.windowObject);
+ //this.windowObject.focusWindow();
+ this.parentObject.selectWindow(this);
+ }.bind(this));
+
+ this.form.addEvent("submit", function(e) {
+ new Event(e).stop();
+
+ this.client.exec(this.inputbox.value);
+ this.inputbox.value = "";
+ }.bind(this));
+ //this.container.appendChild(form);
+ this.form.appendChild(this.inputbox);
+ }