mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02:00
Vfs widget - error handling so it doesn't fail and take down the app if file is weird
This commit is contained in:
parent
8a8b8864fc
commit
f6ae17c0d3
@ -200,7 +200,13 @@ var et2_vfsName = (function(){ "use strict"; return et2_textbox.extend(
|
|||||||
{
|
{
|
||||||
_value = _value.path;
|
_value = _value.path;
|
||||||
}
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
_value = egw.decodePath(_value);
|
_value = egw.decodePath(_value);
|
||||||
|
} catch (e)
|
||||||
|
{
|
||||||
|
_value = 'Error! ' + _value;
|
||||||
|
}
|
||||||
this._super.apply(this,[_value]);
|
this._super.apply(this,[_value]);
|
||||||
},
|
},
|
||||||
getValue: function() {
|
getValue: function() {
|
||||||
@ -230,7 +236,13 @@ var et2_vfsName_ro = (function(){ "use strict"; return et2_textbox_ro.extend(
|
|||||||
{
|
{
|
||||||
_value = _value.path;
|
_value = _value.path;
|
||||||
}
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
_value = egw.decodePath(_value);
|
_value = egw.decodePath(_value);
|
||||||
|
} catch (e)
|
||||||
|
{
|
||||||
|
_value = 'Error! ' + _value;
|
||||||
|
}
|
||||||
this._super.apply(this,[_value]);
|
this._super.apply(this,[_value]);
|
||||||
},
|
},
|
||||||
getValue: function() {
|
getValue: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user