Code

Substract height of any plugin-action divs in order to not hide buttons
[gosa.git] / gosa-core / html / include / pulldown.js
index f4332219c39a689c05c8f60924f89a5f446b750d..1889a703eb86a64691d21b7583a0d4c40ab9e998 100644 (file)
@@ -60,6 +60,7 @@ MenuContainer.prototype = {
 
        init: function(idOrElement, parent) {
          this.element = $(idOrElement);
+          if (!this.element) return;
          this.parent = parent;
          this.parentMenu = (this.type == "menuContainer") ? ((parent) ? parent.parent : null) : parent;
          this.root = parent instanceof Menu ? parent : parent.root;