Changeset 2471 for sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
- Timestamp:
- 04/08/10 18:31:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
r2437 r2471 25 25 if( arguments.length > 0 ) 26 26 { 27 var e = arguments[0]; 28 var jid = arguments[1]; 27 var e = arguments[0]; 28 var jid = arguments[1]; 29 var index = arguments[2]; 29 30 30 31 if ( !e ) … … 37 38 38 39 if ( ( e.which && e.which > 1 ) || ( e.button && e.button > 1 ) ) 39 optionsItensContact( e, jid);40 optionsItensContact(jid, index); 40 41 else 41 42 TrophyIM.rosterClick(jid); … … 236 237 237 238 if ( ev.keyCode == 13 ) 238 if( element.value.length >= 4)239 if( element.value.length >= 3 ) 239 240 searchUser( element.value ); 240 241 else 241 alert('Your search argument must be longer than 4characters.');242 alert('Your search argument must be longer than 3 characters.'); 242 243 } 243 244 } … … 303 304 if( arguments.length > 0 ) 304 305 { 305 var element = ( arguments[0].target ) ? arguments[0].target : arguments[0].srcElement; 306 var jid = arguments[1]; 306 var jid = arguments[0]; 307 var index = arguments[1]; 308 var element = document.getElementById('itenContact_' + jid + '_' + index ); 307 309 308 310 if( showhidden == null ) … … 321 323 { 322 324 _itens += '<img src="'+arrow_right.src+'"/>'; 323 _itens += '<span style="cursor:pointer; margin:3px; " onclick='+_options[i][1]+'>';325 _itens += '<span style="cursor:pointer; margin:3px; font-weight:normal;" onclick='+_options[i][1]+'>'; 324 326 _itens += _options[i][0] + '</span><br/>'; 325 327 } … … 330 332 _optionsItens.style.zIndex = '99999'; 331 333 _optionsItens.innerHTML = _itens; 332 334 _optionsItens.onclick = function(){ showhidden.hiddenObject(false); }; 335 333 336 showhidden.action('onmouseover', 'onmouseout', _optionsItens); 334 337 335 element.parentNode.onclick = function(){ showhidden.hiddenObject(false); }; 336 element.parentNode.onmouseout = function(){ showhidden.hiddenObject(false); }; 337 element.parentNode.onmouseover = function(){ showhidden.hiddenObject(true); }; 338 element.parentNode.appendChild( _optionsItens ); 338 element.onmouseout = function(){ showhidden.hiddenObject(false); }; 339 element.onmouseover = function(){ showhidden.hiddenObject(true); }; 340 element.appendChild( _optionsItens ); 339 341 } 340 342 … … 352 354 function removeContact(jid) 353 355 { 354 TrophyIM.removeContact(jid); 356 setTimeout(function() 357 { 358 TrophyIM.removeContact(jid); 359 360 }, 500); 361 } 362 363 function removeGroup() 364 { 365 var _parent = arguments[0]; 366 367 if( _parent.childNodes.length <= 2 ) 368 _parent.parentNode.removeChild(_parent); 369 355 370 } 356 371 … … 428 443 _statusItens.style.zIndex = '99999'; 429 444 _statusItens.innerHTML = _itens; 445 _statusItens.onclick = function(){ showhidden.hiddenObject(false); }; 430 446 431 447 showhidden.action('onmouseover', 'onmouseout', _statusItens); … … 526 542 loadIM.prototype.setSelectEditable = setSelectEditable; 527 543 loadIM.prototype.removeContact = removeContact; 544 loadIM.prototype.removeGroup = removeGroup; 528 545 loadIM.prototype.rosterDiv = rosterDiv; 529 546
Note: See TracChangeset
for help on using the changeset viewer.