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

Revision 2519, 971 bytes checked in by rodsouza, 14 years ago (diff)

Ticket #1009 - Permitindo que o ExpressoMail? não realize reload de página.

Line 
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;
18                var args   = "expressoMail1_2.db_functions.update_preferences";
19                var params = "prefe_string="+url_encode(connector.serialize(preferences));
20                cExecute(args,handler_preferences,params);
21        }
22
23        Preferences.prototype.delete_dynamic_contacts = function(){
24                var handler = function(data){}
25                var args   = "expressoMail1_2.dynamic_contacts.delete_dynamic_contacts";
26                var params = "";
27                cExecute(args,handler,params);
28        }
29// Cria o objeto       
30        var prefe;
31        prefe = new Preferences();
Note: See TracBrowser for help on using the repository browser.