- Timestamp:
- 02/22/11 11:06:17 (15 months ago)
- Files:
-
- 1 modified
-
HelpIM3/branches/chatgroups/htdocs/chat.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/branches/chatgroups/htdocs/chat.js
r1402 r1421 373 373 374 374 var query = iq.setQuery('http://jabber.org/protocol/muc#admin'); 375 var item = query.appendChild( 376 iq.getDoc().createElementNS('http://jabber.org/protocol/muc#admin', 377 'item')); 378 379 item.setAttribute('nick',user.name); 380 381 item.setAttribute(stat,val); 382 375 376 var item = iq.buildNode('item', {'xmlns': 'http://jabber.org/protocol/muc#admin', 377 'nick': user.name}); 378 item.setAttribute(stat, val); 379 383 380 if (reason || (confirm && (reason = prompt("Reason","")) != '')) 384 381 item.appendChild(iq.getDoc().createElement('reason')).appendChild(iq.getDoc().createTextNode(reason)); 385 382 386 me = this; 383 query.appendChild(item); 384 387 385 srcW.con.send(iq); 388 386 }
