mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
Don't overwrite current option (set from explicit attribute or content) with a legacy option
This commit is contained in:
parent
23fcaf904e
commit
ffe2f1677b
@ -481,7 +481,11 @@ var et2_widget = Class.extend({
|
|||||||
|
|
||||||
for (var j = 0; j < splitted.length && j < _proto.legacyOptions.length; j++)
|
for (var j = 0; j < splitted.length && j < _proto.legacyOptions.length; j++)
|
||||||
{
|
{
|
||||||
_target[_proto.legacyOptions[j]] = splitted[j];
|
// Check to make sure we don't overwrite a current option with a legacy option
|
||||||
|
if(typeof _target[_proto.legacyOptions[j]] === "undefined")
|
||||||
|
{
|
||||||
|
_target[_proto.legacyOptions[j]] = splitted[j];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user