From 7922f414990daec1bf74ec7a238bbad637632960 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 13 Oct 2017 14:51:45 +0200 Subject: [PATCH] Fix file widget readonly is being set correctly --- api/js/etemplate/et2_widget_file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/js/etemplate/et2_widget_file.js b/api/js/etemplate/et2_widget_file.js index c7f480d441..44cbe1ce3c 100644 --- a/api/js/etemplate/et2_widget_file.js +++ b/api/js/etemplate/et2_widget_file.js @@ -159,6 +159,7 @@ var et2_file = (function(){ "use strict"; return et2_inputWidget.extend( },this.asyncOptions); this.asyncOptions.fieldName = this.options.id; this.createInputWidget(); + this.set_readonly(this.options.readonly); }, destroy: function() {