This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.
Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.
We have reverted the code change and released 4.4.1. V4.4 has been retracted.
Sorry for any inconvenience.
See the details here
/* When this element == "", disable select items which have already been set in other repeat group items */
if (Fabrik.debug) fconsole('load',this.element.id);
if (this.element.value === "") {
var selects = this.element.getParent('.fabrikGroup').getElements('.fabrikRepeatGroup___' + this.origId + ' select');
selects.each(function (el) {
if (this.element.id !== el.id) {
var val = el.value;
if (val !== '') {
this.element.getElement('option[value="' + val + '"]').setAttribute('disabled', 'disabled');
}
}
}.bind(this));
}
/* When this element is changed, collect the select items from all matching fields and disable them in other dropdowns */
if (Fabrik.debug) fconsole('change',this.element.id);
var values = [];
var selects = this.element.getParent('.fabrikGroup').getElements('.fabrikRepeatGroup___' + this.origId + ' select');
selects.each(function (select) {
var value = select.value;
if (value !== '' && values.indexOf(value) < 0) {
values.push(value);
}
});
selects.each(function (select) {
if (select.getAttribute('readonly') !== 'readonly' && !select.disabled) {
select.getElements('option').each(function (option) {
var value = option.value;
if (!option.selected && value !== '') {
if (values.indexOf(value) < 0) {
option.removeAttribute('disabled');
} else {
option.setAttribute('disabled', 'disabled');
}
}
});
jQuery(select).trigger("liszt:updated");
jQuery(select).trigger("chosen:updated");
}
});
/* When this element is deleted, collect the select items from all other matching fields and disable them in other dropdowns */
if (Fabrik.debug) fconsole('unload',this.element.id);
var values = [];
var selects = this.element.getParent('.fabrikGroup').getElements('.fabrikRepeatGroup___' + this.origId + ' select');
selects.each(function (select) {
if (this.element.id !== select.id) {
var value = select.value;
if (value !== '' && values.indexOf(value) < 0) {
values.push(value);
}
}
}.bind(this));
selects.each(function (select) {
if (select.getAttribute('readonly') !== 'readonly' && !select.disabled) {
select.getElements('option').each(function (option) {
var value = option.value;
if (!option.selected && value !== '') {
if (values.indexOf(value) < 0) {
option.removeAttribute('disabled');
} else {
option.setAttribute('disabled', 'disabled');
}
}
});
jQuery(select).trigger("liszt:updated");
jQuery(select).trigger("chosen:updated");
}
}.bind(this));