Changeset 294 for trunk/contactcenter
- Timestamp:
- 06/03/08 17:58:55 (16 years ago)
- Location:
- trunk/contactcenter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/js/cc.js
r285 r294 188 188 /************ Edit Group *************/ 189 189 function editGroup(id){ 190 populateEditGroup(id); 191 ccAddGroup.window.open(); 190 populateEditGroup(id); 192 191 } 193 192 /* … … 306 305 var handler = function(responseText) 307 306 { 308 var data = unserialize(responseText); 307 var data = unserialize(responseText); 308 309 309 Element('group_id').value = data['id_group']; 310 var options_contact_list = Element(' contact_list');311 if(data['contact_list']) {312 options_contact_list.innerHTML = data['contact_list'];313 }310 var options_contact_list = Element('span_contact_list'); 311 var select_contact_list = '<select id="contact_list" multiple name="contact_list[]" style="width:280px" size="10">'; 312 select_contact_list += data['contact_list'] + "</select>"; 313 options_contact_list.innerHTML = select_contact_list; 314 314 315 315 if(data['id_group']) { … … 332 332 return; 333 333 } 334 ccAddGroup.window.open(); 334 335 }; 335 336 -
trunk/contactcenter/js/ccAddGroup.js
r285 r294 35 35 this.title = Element('title'); 36 36 this.contact_in_list = Element('contact_in_list'); 37 this.contact_list = Element('contact_list');38 37 this.group_id = Element('group_id'); 39 38 … … 189 188 190 189 if(reload) { 191 for (j =0; j < this.contact_list.options.length; j++) { 192 this.contact_list.options[j].selected = false; 193 this.contact_list.options[j--] = null; 190 if(Element("contact_list")) 191 for (j =0; j < Element("contact_list").options.length; j++) { 192 Element("contact_list").options[j].selected = false; 193 Element("contact_list").options[j--] = null; 194 194 } 195 195 } … … 201 201 202 202 cAddGroup.prototype.remUser = function(){ 203 204 select = this.contact_list; 203 205 204 select_in = this.contact_in_list; 206 205 … … 213 212 cAddGroup.prototype.addUser = function(){ 214 213 215 select = this.contact_list;214 select = Element("contact_list"); 216 215 select_in = this.contact_in_list; 217 216 -
trunk/contactcenter/templates/default/addGroup.tpl
r2 r294 33 33 </tr> 34 34 <tr height="30" class="th"> 35 <td align="right"><s elect id="contact_list" multiple name="contact_list[]" style="width:280px" size="10"></select></td>35 <td align="right"><span id='span_contact_list'/></td> 36 36 </tr> 37 37 </table>
Note: See TracChangeset
for help on using the changeset viewer.