Bug #9236: Honor disable option
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 18:27:56 +0000 (12:27 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 18:27:56 +0000 (12:27 -0600)
horde/js/contextsensitive.js

index 8c76ae9..90eb5d0 100644 (file)
@@ -377,7 +377,7 @@ ContextSensitive.Element = Class.create({
         this.ctx = target;
         this.opts = opts;
         this.opts.left = Boolean(opts.left);
-        this.disable = false;
+        this.disable = opts.disable;
 
         target = $(target);
         if (target) {