Changeset 1939


Ignore:
Timestamp:
01/21/10 17:09:26 (14 years ago)
Author:
eduardoalex
Message:

Ticket #888 - Resolvendo o problema descrito no ticket em questao

Location:
trunk/expressoMail1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.db_functions.inc.php

    r1738 r1939  
    193193        } 
    194194 
     195        //Gera lista de contatos para ser gravado e acessado pelo expresso offline. 
     196        function get_dropdown_contacts_to_cache() { 
     197                return $this->get_dropdown_contacts(); 
     198        } 
     199         
    195200        function get_dropdown_contacts(){ 
    196201                 
  • trunk/expressoMail1_2/js/local_messages.js

    r1938 r1939  
    380380                for (var i = 0; i < anexos.length; i++) { 
    381381                        this.dbGears.execute("insert into anexo (id_mail,nome_anexo,url,pid) values (?,?,?,?)", [id_msg, anexos[i]['name'],anexos[i]['url'],anexos[i]['pid']]); 
    382                         this.save_anexos(anexos[i]['url']); 
    383                 } 
    384         } 
    385  
    386         local_messages.prototype.save_anexos = function (url) { 
     382                        this.capt_url(anexos[i]['url']); 
     383                } 
     384        } 
     385 
     386        local_messages.prototype.capt_url = function (url) { 
    387387                //insert_mail already close and open gears. 
    388388                var call_back = function(url,success,captureId) { 
     
    12821282                } 
    12831283                managedStore.checkForUpdate(); 
     1284                this.capt_url('controller.php?action=$this.db_functions.get_dropdown_contacts_to_cache'); 
    12841285                 
    12851286                this.finalize(); 
  • trunk/expressoMail1_2/js/main.js

    r1814 r1939  
    1111        var save_contacts = function(data){ 
    1212                contacts = data; 
     13                expresso_local_messages.capt_url('controller.php?action=$this.db_functions.get_dropdown_contacts_to_cache'); 
    1314        } 
    1415        var save_preferences = function(data){ 
     
    101102                // Get cyrus delimiter 
    102103        cyrus_delimiter = Element('cyrus_delimiter').value; 
    103                  
     104         
     105        cExecute ("$this.db_functions.get_dropdown_contacts_to_cache", function(data) {contacts = data;}); 
    104106        //cExecute ("$this.functions.get_preferences", save_preferences); 
    105107        } 
Note: See TracChangeset for help on using the changeset viewer.