Revision 7228,
736 bytes
checked in by douglas, 12 years ago
(diff) |
Ticket #0000 - Copiadas as alterações do Trunk. Versão final da 2.4.2.
|
-
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.