From b382dc570fe196db34c11e1ed0f1976ac0970be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Tue, 23 Aug 2011 15:05:13 +0000 Subject: [PATCH] Fixed readonly buttons are rendered --- etemplate/js/et2_button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_button.js b/etemplate/js/et2_button.js index 048a42ef89..419cd482de 100644 --- a/etemplate/js/et2_button.js +++ b/etemplate/js/et2_button.js @@ -37,14 +37,14 @@ var et2_button = et2_baseWidget.extend(et2_IInput, { } }, - init: function(_parent, _type, _readonly) { + init: function() { this._super.apply(this, arguments); this.label = ""; this.clicked = false; this.btn = null; - if (!_readonly) + if (!this.options.readonly) { this.btn = $j(document.createElement("button")) .addClass("et2_button");