I'm running fabrik 3.1 on joomla 2.5 and am getting a js error in databasejoin-min.js which prevents me from running the js validation code for the element:
> TypeError: e is undefined
This is the problematic code:
e is undefined when trying to run e.stop(). Any ideas? Have you seen this before?
This problem started to happen when I added js validation on the database join element and tried to execute the validation when another element changed value.
Specifically this:
On element X (dropdown element) I run this js code onchange:
$('table___Y').fireEvent('change');
On element Y (database join element) I run this js code onchange:
alert("foo");
Here "alert("foo");" isn't run because of the js error.
(onchange for element Y seems to work well when Y in changed directly. It's only if I manually try to trigger the onchange event that it seems to fail)
> TypeError: e is undefined
This is the problematic code:
Code:
addNewEventAux: function (action, js) {
switch (this.options.displayType) {
case 'dropdown':
/* falls through */
default:
if (this.element) {
this.element.addEvent(action, function (e) {
e.stop();
(typeOf(js) === 'function') ? js.delay(0, this, this) : eval(js);
}.bind(this));
}
break;
e is undefined when trying to run e.stop(). Any ideas? Have you seen this before?
This problem started to happen when I added js validation on the database join element and tried to execute the validation when another element changed value.
Specifically this:
On element X (dropdown element) I run this js code onchange:
$('table___Y').fireEvent('change');
On element Y (database join element) I run this js code onchange:
alert("foo");
Here "alert("foo");" isn't run because of the js error.
(onchange for element Y seems to work well when Y in changed directly. It's only if I manually try to trigger the onchange event that it seems to fail)