source: trunk/jabberit_messenger/js/changeStatus.js @ 697

Revision 697, 578 bytes checked in by niltonneto, 15 years ago (diff)

Fechamento das ocorrências referentes à versão 0.7.11

  • Property svn:executable set to *
Line 
1(function()
2{
3        // Path JabberIt
4        var path_jabberit = null;
5       
6        function getStatus(pStatus, pElement)
7        {
8        var element = pElement;
9                var status = pStatus;
10
11                var url_img = path_jabberit + 'templates/default/images/' + status + '.gif';
12                element.style.backgroundImage = 'url(' + url_img +')';
13        }
14
15        function setPath()
16        {
17                if( arguments.length > 0 && path_jabberit == null )
18                        path_jabberit = arguments[0];
19        }
20       
21        function changeStatus(){}
22
23        changeStatus.prototype.get                      = getStatus;
24        changeStatus.prototype.setpath          = setPath;
25       
26        window.changestatus = new changeStatus;
27
28})();   
Note: See TracBrowser for help on using the repository browser.