source: branches/2.2/expressoMail1_2/js/preferences.js @ 1308

Revision 1308, 951 bytes checked in by amuller, 15 years ago (diff)

Ticket #475 - Revertendo código usado para fora de escritório

  • 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
23        Preferences.prototype.delete_dynamic_contacts = function(){
24                var handler = function(data){}
25                var args   = "$this.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.