Author: tan_pham_dinh
Date: 2010-02-02 02:41:03 -0500 (Tue, 02 Feb 2010)
New Revision: 1491
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIForm.js
Log:
GTNPORTAL-557: Don't reset value in select multi value component
Modified: portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIForm.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIForm.js 2010-02-02
07:40:43 UTC (rev 1490)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIForm.js 2010-02-02
07:41:03 UTC (rev 1491)
@@ -150,9 +150,8 @@
}
break;
case "select-multiple":
- while (element.selectedIndex != -1) {
- this.addField(element.name, element.options[element.selectedIndex].value);
- element.options[element.selectedIndex].selected = false;
+ for(var j = 0; j < element.options.length; j++) {
+ if(element.options[j].selected) this.addField(element.name,
element.options[j].value);
}
break;
} // switch