Changeset 5102 for branches


Ignore:
Timestamp:
09/26/11 08:28:07 (8 years ago)
Author:
rafaelraymundo
Message:

Ticket #2275 - Resultado mal formatado na Busca de endereços com F9.

Location:
branches/2.3/expressoMail1_2/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/expressoMail1_2/js/QuickCatalogSearch.js

    r4651 r5102  
    245245                option_selected = cm.options[cm.selectedIndex].value + ", "; 
    246246                emailList = document.getElementById(field + "_" + ID).value; 
    247                  
    248                 new_emailList = emailList.substring(0, begin) + option_selected + emailList.substring((parseInt(end) + 2), emailList.length); 
     247                new_emailList = emailList.substring(0, begin) + option_selected + emailList.substring((parseInt(end) + 1), emailList.length); 
    249248                document.getElementById(field + "_" + ID).value = new_emailList; 
    250249                document.getElementById(field + "_" + ID).focus(); 
     
    562561        emQuickCatalogSearch.prototype.searchCatalogList = function (itemSearch){ 
    563562 
    564                 if(itemSearch && Element('search_for').value.length < preferences.search_characters_number){ 
     563if(itemSearch && Element('search_for').value.length < preferences.search_characters_number){ 
    565564                        alert(get_lang('Your search argument must be longer than %1 characters.', preferences.search_characters_number)); 
    566565                        Element('search_for').focus(); 
  • branches/2.3/expressoMail1_2/js/common_functions.js

    r4906 r5102  
    585585                Element(field +'_'+ ID).focus(); //It requires for IE. 
    586586                var i = getPosition(Element(field +'_'+ ID)); //inputBox.selectionStart; 
    587                 var j = --i; 
     587                var j = i-1; 
    588588 
    589589                // Acha o inicio 
     
    600600        else 
    601601                var search_for = emailList; 
    602  
     602        
    603603        if (search_for.length < preferences.search_characters_number){ 
    604604            //alert(get_lang('Your search argument must be longer than %1 characters.', preferences.search_characters_number)); 
Note: See TracChangeset for help on using the changeset viewer.