Changeset 1421 for HelpIM3

Show
Ignore:
Timestamp:
02/22/11 11:06:17 (15 months ago)
Author:
zeank
Message:

make it work in IE

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • HelpIM3/branches/chatgroups/htdocs/chat.js

    r1402 r1421  
    373373 
    374374    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 
    383380    if (reason || (confirm && (reason = prompt("Reason","")) != '')) 
    384381        item.appendChild(iq.getDoc().createElement('reason')).appendChild(iq.getDoc().createTextNode(reason)); 
    385382 
    386     me = this; 
     383        query.appendChild(item); 
     384 
    387385    srcW.con.send(iq); 
    388386}