From 61f25c05ffa81431eb5340cd5c1dd4b5e325cfe4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 28 Mar 2014 08:46:54 +0000 Subject: [PATCH] fixed direct access to (not longer existing) egw.userData.apps[app] by using method egw.app(app) --- etemplate/js/et2_widget_vfs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_vfs.js b/etemplate/js/et2_widget_vfs.js index 82ab309836..626f6f3df6 100644 --- a/etemplate/js/et2_widget_vfs.js +++ b/etemplate/js/et2_widget_vfs.js @@ -640,13 +640,13 @@ var et2_vfsSelect = et2_inputWidget.extend( .attr("src", this.egw().image("filemanager/navbar")) .attr("title", this.egw().lang("Select file(s) from VFS")) .addClass("et2_button et2_button_icon"); - this.setDOMNode(egw.userData.apps.filemanager ? this.button[0]:document.createElement('span')); + this.setDOMNode(egw.app('filemanager') ? this.button[0]:document.createElement('span')); }, click: function(e) { // No permission - if(typeof egw.userData.apps.filemanager == 'undefined') return; + if(!egw.app('filemanager')) return; var self = this;