You need to sign in to do that
Don't have an account?
gaiser
functions.js:moveOption(...) - onchange notification bug?
Looks like method moveOption() from functions.js (ex. https://emea.salesforce.com/js/functions.js) incorrectly notifies sourceSelect about its content change
Currently it looks like
Code:
Currently it looks like
Code:
// notify the Select Elements that their contents have changedObviously call of sourceSelect.onchange() should be done after "sourceSelect.remove(selectedIds[i])" cycle, not before.
...
if (sourceSelect["onchange"]) {
sourceSelect.onchange();
}
// remove selected values from the source, starting with the last one selected
for (var i = selectedIds.length - 1; i > -1; i--) {
sourceSelect.remove(selectedIds[i]);
}