mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-11 21:50:15 +01:00
fixed direct access to (not longer existing) egw.userData.apps[app] by using method egw.app(app)
This commit is contained in:
parent
115aabf21a
commit
61f25c05ff
@ -640,13 +640,13 @@ var et2_vfsSelect = et2_inputWidget.extend(
|
|||||||
.attr("src", this.egw().image("filemanager/navbar"))
|
.attr("src", this.egw().image("filemanager/navbar"))
|
||||||
.attr("title", this.egw().lang("Select file(s) from VFS"))
|
.attr("title", this.egw().lang("Select file(s) from VFS"))
|
||||||
.addClass("et2_button et2_button_icon");
|
.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) {
|
click: function(e) {
|
||||||
|
|
||||||
// No permission
|
// No permission
|
||||||
if(typeof egw.userData.apps.filemanager == 'undefined') return;
|
if(!egw.app('filemanager')) return;
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user