- Timestamp:
- 09/05/11 15:33:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/expressoMail1_2/MailArchiver/2.2/expressoMail1_2/js/sharemailbox.js
r4644 r5035 8 8 } 9 9 10 cShareMailbox.prototype.get_available_users = function(context) 11 { 12 if( sharedFolders_users_auto_search.toString() === "true" ) 13 { 14 this.get_available_users2(context); 15 } 10 cShareMailbox.prototype.get_available_users = function(context) 11 { 12 if( sharedFolders_users_auto_search.toString() === "true" ) 13 { 14 this.get_available_users2(context); 16 15 } 16 } 17 17 18 18 cShareMailbox.prototype.get_available_users2 = function() … … 325 325 } 326 326 327 cShareMailbox.prototype.optionFinderTimeout = function(Obj, Event ) 328 { 329 var minNumChar = sharedFolders_min_num_characters; 330 var oWait = document.getElementById("em_span_searching"); 331 this.context = document.getElementById('em_combo_org').value; 332 333 if( ( parseInt(minNumChar) > 0 && minNumChar.toString() != "" ) && 334 sharedFolders_users_auto_search.toString() === "false" ) 335 { 327 cShareMailbox.prototype.optionFinderTimeout = function(Obj, Event ) 328 { 329 var minNumChar = trim(sharedFolders_min_num_characters); 330 minNumChar = ( minNumChar === "" || parseInt(minNumChar) == 0 ) ? 1 : minNumChar; 331 332 var oWait = document.getElementById("em_span_searching"); 333 this.context = document.getElementById('em_combo_org').value; 334 335 if( parseInt(minNumChar) > 0 && sharedFolders_users_auto_search.toString() === "false" ) 336 { 336 337 var key = [8,27,37,38,39,40]; 337 338 var ev = Event; … … 354 355 355 356 for( var i in key ) 356 357 358 359 360 361 357 { 358 if( ev.keyCode == key[i]) 359 { 360 return false; 361 } 362 } 362 363 363 364 if( _inputSearch.value.length < parseInt(minNumChar) ) … … 368 369 else 369 370 { 370 oWait.innerHTML = " ( Buscando aguarde .... )";371 oWait.innerHTML = get_lang('Searching')+"..."; 371 372 372 373 if( this.finderTimeout ) … … 375 376 this.finderTimeout = setTimeout(function(){ getUsers( _inputSearch, oWait); }, 1000); 376 377 } 377 378 379 380 381 382 383 384 385 386 378 } 379 else 380 { 381 if( this.finderTimeout ) 382 clearTimeout(this.finderTimeout); 383 384 oWait.innerHTML = get_lang('Searching')+"..."; 385 386 this.finderTimeout = setTimeout(function(){ sharemailbox.optionFinder(Obj.id); }, 1000); 387 } 387 388 } 388 389
Note: See TracChangeset
for help on using the changeset viewer.