source: trunk/expressoMail1_2/js/jscode/preferences.js @ 2579

Revision 2579, 973 bytes checked in by amuller, 14 years ago (diff)

Ticket #1036 - Correção de ponto e virgula

RevLine 
[2517]1/**************************************************************************\
2 Início
3\**************************************************************************/
4        function Preferences(){
5                this.prefeW             = new Array;
6        }
7
8        // Salva uma unica preferencia
9        Preferences.prototype.save = function(key, value){
10                var _this = this;               
11                var handler_preferences = function(data){
12                        if(data && data.success)
13                                return;                 
14                        else
15                        alert(data);
16                }
17                preferences[key] = value;
[2519]18                var args   = "expressoMail1_2.db_functions.update_preferences";
[2517]19                var params = "prefe_string="+url_encode(connector.serialize(preferences));
20                cExecute(args,handler_preferences,params);
[2579]21        };
[2517]22
23        Preferences.prototype.delete_dynamic_contacts = function(){
24                var handler = function(data){}
[2519]25                var args   = "expressoMail1_2.dynamic_contacts.delete_dynamic_contacts";
[2517]26                var params = "";
27                cExecute(args,handler,params);
[2579]28        };
[2517]29// Cria o objeto       
30        var prefe;
31        prefe = new Preferences();
Note: See TracBrowser for help on using the repository browser.