Changeset 2312 for sandbox/jabberit_messenger/trophy/js/loadIM.js
- Timestamp:
- 03/19/10 17:28:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy/js/loadIM.js
r2293 r2312 5 5 var zIndex = 9001; 6 6 7 function configEvents(pObj, pEvent, pHandler) 8 { 9 if ( typeof pObj == 'object' ) 10 { 11 if ( pEvent.substring(0, 2) == 'on' ) 12 pEvent = pEvent.substring(2, pEvent.length); 13 14 if ( pObj.addEventListener ) 15 pObj.addEventListener(pEvent, pHandler, false); 16 else if ( pObj.attachEvent ) 17 pObj.attachEvent('on' + pEvent, pHandler); 18 } 19 } 20 7 21 function TrophyIMChatArea() 8 22 { 23 /* 9 24 var winImChatArea = 10 25 { … … 23 38 }; 24 39 25 //_winBuild( winImChatArea ); 26 27 //return '<div id="trophyimchat"><div id="trophyimchattabs"/></div>'; 40 _winBuild( winImChatArea ); 41 42 return '<div id="trophyimchat"><div id="trophyimchattabs"/></div>'; 43 */ 28 44 } 29 45 … … 83 99 { 84 100 setXTools(); 85 101 86 102 var winRosterDiv = 87 103 { … … 97 113 title : "Contatos - Expresso Messenger", 98 114 closeAction : "hidden", 99 content : '<div id="trophyimroster" />' + TrophyIMStatusDiv()115 content : _xtools.parse(_xtools.xml("contacts_list"),"contactsList.xsl") 100 116 }; 101 117 102 118 _winBuild( winRosterDiv ); 103 104 //return '<div id="trophyimroster" />';105 119 } 106 120 … … 123 137 { 124 138 var statusDiv = '<div id="trophyimstatus">' + 125 '<span>Status: </span>' +139 '<span>Status::::</span>' + 126 140 '<span id="trophyimstatuslist">Select box</span>' + 127 141 '<br/>' + … … 129 143 '<input type="button" value="disconnect" onclick="TrophyIM.logout()"/>' + 130 144 '</form>' + 145 '<input type="button" value="DND" onclick="TrophyIM.setTest(\'dnd\')">'+ 146 '<input type="button" value="AWAY" onclick="TrophyIM.setTest(\'away\')">'+ 147 '<input type="button" value="XA" onclick="TrophyIM.setTest(\'xa\')">'+ 148 '<input type="button" value="INVISIBLE" onclick="TrophyIM.setTest(\'invisible\')">'+ 149 '<input type="button" value="UNAVAILABLE" onclick="TrophyIM.setTest(\'unavailable\')">'+ 150 '<input type="button" value="AVAILABLE" onclick="TrophyIM.setTest(\'available\')">'+ 131 151 '</div>'; 132 152 … … 216 236 function loadIM() 217 237 { 218 219 238 var files = [ 220 239 'js/xtools.js', … … 222 241 'js/makeW.js', 223 242 'css/trophyim.css', 224 'css/window_azul.css'243 //'css/window_azul.css' 225 244 //'css/window_cataratas.css' 226 245 //'css/window_celepar.css' … … 229 248 //'css/window_escritorio.css' 230 249 //'css/window_metropole.css' 231 //'css/window_rochas.css'250 'css/window_rochas.css' 232 251 ]; 233 252 234 253 loadScripts(files); 235 236 254 } 237 255 … … 239 257 loadIM.prototype.getZIndex = getZindex; 240 258 loadIM.prototype.parse = parse; 259 loadIM.prototype.configEvents = configEvents; 241 260 242 261 loadIM.prototype.HTMLSnippets = new HTMLSnippets;
Note: See TracChangeset
for help on using the changeset viewer.