source: trunk/expressoMail1_2/js/preferences.js @ 6930

Revision 6930, 736 bytes checked in by gustavo, 12 years ago (diff)

Ticket #2954 - Merge de algumas novas funcionalidades da nova versão, #2953, #2971

  • Property svn:executable set to *
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   = "$this.db_functions.update_preferences";
19                var params = "prefe_string="+url_encode(connector.serialize(preferences));
20                cExecute(args,handler_preferences,params);
21        }
22// Cria o objeto       
23        var prefe;
24        prefe = new Preferences();
Note: See TracBrowser for help on using the repository browser.