source: sandbox/jabberit_messenger/trophy_expresso/js/jscode/loadIM.js @ 2670

Revision 2670, 20.4 KB checked in by alexandrecorreia, 14 years ago (diff)

Ticket #986 - Correcao para compatibilizar o carregamento do script para o trunk.

  • Property svn:executable set to *
Line 
1(function()
2{
3        var fullName            = "";
4        var path                        = "";
5        var addUser                     = null;
6        var conn                        = null;
7        var selectEditable      = null;
8        var showhidden          = null;
9        var timeoutId           = null
10        var userCurrent         = null;
11        var Xtools                      = null;
12        var zIndex                      = 9001;
13       
14        // Images
15        var add_user = new Image();
16        add_user.src = path_jabberit + 'templates/default/images/adduser_azul.png';
17
18        var arrow_down = new Image();
19        arrow_down.src = path_jabberit + 'templates/default/images/arrow_down.gif';
20
21        var arrow_right = new Image();
22        arrow_right.src = path_jabberit + 'templates/default/images/arrow_right.gif';
23       
24        function actionButton()
25        {
26                if( arguments.length > 0 )
27                {
28                        var e                   = arguments[0];
29                        var _element    = ( e.target ) ? e.target : e.srcElement;
30                        var jid         = arguments[1];
31                        var index       = arguments[2];
32                        var coord       = null;
33
34                        if ( !e )
35                                e = window.event;
36
37                        var _X = e.clientX + document.body.scrollLeft - document.body.clientLeft;
38                        var _Y = e.clientY + document.body.scrollTop  - document.body.clientTop;
39                               
40                        coord = { X : _X, Y : _Y };
41               
42
43                        var _onContextMenu = function()
44                        {
45                                return false;
46                        };
47                       
48                        window.document.oncontextmenu   = _onContextMenu;
49                       
50                        if( e.button )
51                        {
52                                if( e.button > 1 )
53                                        optionsItensContact( jid, index, coord );
54                                else
55                                        TrophyIM.rosterClick(jid);
56                        }       
57                        else if( e.which )
58                        {
59                                if( e.which > 1 )
60                                        optionsItensContact( jid, index, coord );
61                                else
62                                        if( e.target.id )
63                                                TrophyIM.rosterClick(jid);
64                        }
65                }
66        }
67
68        function addContact()
69        {
70                if( arguments.length > 0 )
71                        addUser.add();
72                else
73                        addUser.show();
74        }
75       
76        function addIcon()
77        {
78                var StatusBar = getElement('divStatusBar');
79
80                /**
81                 * @quando estiver habilitada a opção fora de escritório nos filtros.
82                 */
83               
84                if( div_write_msg = getElement('em_div_write_msg') )
85                {               
86                        var StatusBarIM = getElement('JabberMessenger');
87                                StatusBarIM.style.paddingLeft = '33px';
88                       
89                        div_write_msg.parentNode.insertBefore( StatusBarIM, div_write_msg );
90                       
91                        return;                 
92                }
93               
94                if( StatusBar )
95                {
96                        StatusBar.style.paddingLeft = '33px';
97                       
98                        var _div = document.createElement('div');
99                                _div.appendChild(StatusBar.parentNode.removeChild(StatusBar.previousSibling));
100                       
101                                StatusBar.parentNode.insertBefore( _div, StatusBar);
102                       
103                        var divJabber = document.createElement('div');
104                                divJabber.setAttribute('id', 'JabberMessenger');
105                       
106                        var _fastMenu = top.document.createElement('div');
107                                _fastMenu.setAttribute('id', 'fast_menu_jabber_expresso');
108                                _fastMenu.style.background              = 'no-repeat';
109                                _fastMenu.style.backgroundImage = 'url(' + arrow_down.src + ')';
110                                _fastMenu.style.float                   = 'left';
111                                _fastMenu.style.height                  = '15px';
112                                _fastMenu.style.left                    = '7px';
113                                _fastMenu.style.margin                  = '8 0 0 10px';
114                                _fastMenu.style.padding                 = '0px';
115                                _fastMenu.style.position                = 'absolute';
116                                _fastMenu.style.width                   = '15px';
117                                _fastMenu.style.cursor                  = 'pointer';
118
119                        divJabber.insertBefore( _fastMenu, divJabber.firstChild );
120                       
121                        // Add event onclick element _fastMenu
122                        configEvents( _fastMenu, 'onclick', function(){ fastMenu(_fastMenu); });
123
124                        var _statusJabber = top.document.createElement('div');
125                                _statusJabber.setAttribute('id','status_jabber_expresso');
126                                _statusJabber.style.background          = 'no-repeat';
127                                _statusJabber.style.backgroundImage = 'url(' + add_user.src +')';
128                                _statusJabber.style.float                       = 'left';
129                                _statusJabber.style.height                      = '18px';
130                                _statusJabber.style.left                        = '19px';
131                                _statusJabber.style.margin                      = '0 0 0 10px';
132                                _statusJabber.style.padding                     = '0px';
133                                _statusJabber.style.position            = 'absolute';
134                                _statusJabber.style.width                       = '18px';
135                                _statusJabber.style.cursor                      = 'pointer';
136                                _statusJabber.style.zindex                      = '999999';
137                       
138                        divJabber.insertBefore( _statusJabber, divJabber.firstChild );
139                       
140                        StatusBar.insertBefore( divJabber, StatusBar.firstChild );
141
142                        // Add event onclick element _statusJabber
143                        configEvents( _statusJabber, 'onclick', function(){ TrophyIM.load();});
144                }
145        }
146
147        function clrAllContacts()
148        {
149                getElement("JabberIMRoster").innerHTML = "";
150        }
151       
152        function configEvents(pObj, pEvent, pHandler)
153        {
154                if ( typeof pObj == 'object' )
155                {
156                        if ( pEvent.substring(0, 2) == 'on' )
157                                pEvent = pEvent.substring(2, pEvent.length);
158
159                        if ( pObj.addEventListener )
160                                pObj.addEventListener(pEvent, pHandler, false);
161                        else if ( pObj.attachEvent )
162                                pObj.attachEvent('on' + pEvent, pHandler);
163                }
164        }
165       
166        function fastMenu()
167        {
168                if( arguments.length > 0 )
169                {
170                        var element = arguments[0];
171
172                        if( showhidden == null )
173                                showhidden = new ShowHidden(300);
174
175                        var _options = [
176                                                ['Adicionar Contato', 'loadscript.addContact();' ],
177                                                ['Ajuda', 'alert("2")' ],
178                                                ['Preferências', 'alert("3")'],
179                                                   ];
180
181                        var _itens = "";
182                       
183                        for( var i in _options )
184                        {
185                                if( _options[i].constructor == Function )
186                                        continue;
187                               
188                                //if( typeof(_options) === "object" && _options[i][0] != "undefined" )
189                                //{
190                                        _itens += '<img src="'+arrow_right.src+'"/>';
191                                        _itens += '<span style="cursor:pointer; margin:3px;" onclick='+_options[i][1]+'>';
192                                        _itens += _options[i][0] + '</span><br/>';
193                                //}
194                        }
195                       
196                        var _optionsItens = document.createElement("div");
197                                _optionsItens.id        = "fastMenu_Jabber";                           
198                                _optionsItens.style.marginTop   = "19px";
199                                _optionsItens.style.marginLeft  = "-8px";
200                                _optionsItens.className         = "x-menu";
201                                _optionsItens.style.zIndex      = '999999';
202                                _optionsItens.innerHTML         = _itens;
203                                _optionsItens.onclick           = function(){ showhidden.hiddenObject(false); };
204                                _optionsItens.onmouseout        = function(){ showhidden.hiddenObject(false); };
205                                _optionsItens.onmouseover       = function(){ showhidden.hiddenObject(true); };
206                                                                                 
207                                showhidden.action('onmouseover', 'onmouseout', _optionsItens);
208                               
209                        element.parentNode.appendChild( _optionsItens );
210                }
211        }
212       
213        function getElement( elementId )
214        {
215                return document.getElementById( elementId );
216        }
217       
218        function getPhotoUser( jid )
219        {
220                var _divPhoto = getElement( jid + '__photo' );
221
222                if( _divPhoto.style.backgroundImage.indexOf('photo.png') > 0 )
223                {
224                        var _imgUser  = path_jabberit + 'inc/WebService.php?' + Date.parse( new Date );
225                                _imgUser += '&photo_ldap=' + jid;
226
227                        _divPhoto.style.backgroundImage = 'url(' + _imgUser + ')';
228                }
229        }
230       
231        function getUserCurrent()
232        {
233                return userCurrent;
234        }
235       
236        function getZindex()
237        {
238                return zIndex++;
239        }
240       
241        function groupsHidden()
242        {
243                if( arguments.length > 0 )
244                {
245                        var _element = arguments[0];
246                                _element.style.background = "url('"+path_jabberit+"templates/default/images/arrow_right.gif') no-repeat center left";
247                                _element.onclick = function(){ groupsVisible(_element);};
248                               
249                                // Hidden all
250                                var _elementNext = _element.nextSibling;
251                               
252                                while( _elementNext )
253                                {       
254                                        if( _elementNext.nodeType == 1 )
255                                                _elementNext.style.display = "none";
256                                       
257                                        _elementNext = _elementNext.nextSibling;
258                                }
259                }
260        }
261       
262        function groupsVisible()
263        {
264                if( arguments.length > 0 )
265                {
266                        var _element = arguments[0];
267                                _element.style.background = "url('"+path_jabberit+"templates/default/images/arrow_down.gif') no-repeat center left";
268                                _element.onclick = function(){ groupsHidden(_element);};
269
270                                // Display all
271                                var _elementNext = _element.nextSibling;
272                               
273                                while( _elementNext )
274                                {       
275                                        if( _elementNext.nodeType == 1 )
276                                                _elementNext.style.display = "block";
277
278                                        _elementNext = _elementNext.nextSibling;
279                                }
280                }
281        }
282       
283        function keyPressSearch()
284        {
285                if( arguments.length > 0 )
286                {
287                        var ev          = arguments[0];
288                        var element     = arguments[1];
289       
290                        if ( ev.keyCode == 13 )
291                                if( element.value.length >= 3 )
292                                        searchUser( element.value );   
293                                else
294                                        alert('Your search argument must be longer than 3 characters.');
295                }
296        }
297
298       
299        function loginPage()
300        {
301                var winLoginPage =
302                {       
303                         id_window              : "window_login_page",
304                         width                  : 260,
305                         height                 : 150,
306                         top                    : 100,
307                         left                   : 400,
308                         draggable              : true,
309                         visible                : "display",
310                         resizable              : true,
311                         zindex                 : zIndex++,
312                         title                  : "Expresso Messenger - Login",
313                         closeAction    : "remove",
314                         content                : Xtools.parse(Xtools.xml("login_page"), "loginPage.xsl")       
315                };
316
317                _winBuild( winLoginPage );
318        }
319
320        function loadScripts(pFiles)
321        {
322                // Load JavaScript
323                var loadJavaScript = function(pJs)
324                {
325                        var newScript = document.createElement("script");
326                                newScript.setAttribute("type", "text/javascript");
327                                newScript.setAttribute("src", pJs );
328                               
329                        return newScript;
330                };
331               
332                // Load CSS
333                var loadStyleSheet = function(pCss)
334                {
335                        var newStyle = document.createElement("link");
336                                newStyle.setAttribute("rel", "stylesheet");
337                                newStyle.setAttribute("type", "text/css");
338                                newStyle.setAttribute("href", pCss);
339                               
340                        return newStyle;
341                };
342               
343                for(var i = 0; i < pFiles.length; i++)
344                {
345                        if( pFiles[i].indexOf(".js") > -1 )
346                                document.getElementsByTagName("head")[0].appendChild(loadJavaScript(pFiles[i]));
347                               
348                        if( pFiles[i].indexOf(".css") > -1 )
349                                document.getElementsByTagName("head")[0].appendChild(loadStyleSheet(pFiles[i]));
350                }
351        }
352       
353        function notificationNewMessage()
354        {
355                var oldTitle    = document.title;
356                var newTitle    = "## NOVA MENSAGEM ##";
357                var idWindow    = arguments[1];
358
359                if( timeoutId == null )
360                {
361                        timeoutId = setInterval(function()
362                        {
363                                document.title = ( document.title == newTitle ) ? oldTitle : newTitle;
364                        }, 1000);
365                       
366                        configEvents( window.document, 'onclick', function()
367                        {
368                                clearInterval(timeoutId);
369                                document.title  = oldTitle;
370                                timeoutId               = null;
371                        });
372                       
373                        configEvents( window.document, 'onkeypress', function()
374                        {
375                                clearInterval(timeoutId);
376                                document.title  = oldTitle;
377                                timeoutId               = null;
378                        });
379                }
380        }
381
382        function optionsItensContact()
383        {
384                if( arguments.length > 0 )
385                {
386                        var jid         = arguments[0];
387                        var index       = arguments[1];
388                        var coord       = arguments[2];
389                        var element = getElement('itenContact_' + jid + '_' + index );
390                        var action      = ( element.getAttribute("subscription") === "not-in-roster" ) ? "Adicionar" : "Autorizar";     
391                       
392                        if( showhidden == null )
393                                showhidden = new ShowHidden(300);
394
395                        var _options = [
396                                                [ action , 'loadscript.setAutorization(\''+jid+'\',\''+index+'\')'],
397                                                ['Remover' , 'loadscript.removeContact(\''+jid+'\',\''+index+'\')'],
398                                                ['Renomear' , 'loadscript.renameContact(\''+jid+'\',\''+index+'\')'],
399                                                ['Trocar grupo' , 'loadscript.renameGroup(\''+jid+'\',\''+index+'\')']
400                                                   ];
401
402                        var _itens = "";
403                       
404                        for( var i in _options )
405                        {
406                                if( typeof(_options[i]) == "object")
407                                {
408                                        _itens += '<img src="'+arrow_right.src+'"/>';
409                                        _itens += '<span style="cursor:pointer;margin:3px;font-weight:normal;" onclick='+_options[i][1]+'>';
410                                        _itens += _options[i][0] + '</span><br/>';
411                                }
412                        }
413                       
414                        var _optionsItens = document.createElement("div");
415                                _optionsItens.className         = "x-menu";
416                                _optionsItens.style.top         = coord.Y;
417                                _optionsItens.style.left        = ( coord.X - element.offsetLeft );
418                                _optionsItens.style.zIndex      = getZindex();
419                                _optionsItens.innerHTML         = _itens; 
420                                _optionsItens.onclick           = function(){ showhidden.hiddenObject(false); };
421                                _optionsItens.onmouseout        = function(){ showhidden.hiddenObject(false); };       
422                                _optionsItens.onmouseover       = function(){ showhidden.hiddenObject(true); };
423                               
424                                showhidden.action('onmouseover', 'onmouseout', _optionsItens);
425                               
426                        window.document.body.appendChild(_optionsItens);
427                       
428                       
429                        setTimeout(function()
430                        {
431                                window.document.oncontextmenu = function()
432                                {
433                                        return true;
434                                };
435                               
436                        },500);
437                }
438        }
439
440        function parse()
441        {
442                if( arguments.length == 2 )
443                        return Xtools.parse(Xtools.xml(arguments[0]), arguments[1] );
444               
445                if( arguments.length === 3 )
446                        return Xtools.parse(Xtools.xml(arguments[0]), arguments[1], arguments[2] );
447        }
448       
449        function removeContact(jid, index)
450        {
451                setTimeout(function()
452                {
453                        TrophyIM.removeContact(jid, index);
454                       
455                },300);
456        }
457       
458        function removeElement( )
459        {
460                if( arguments.length > 0 )
461                {
462                        var _element = arguments[0]
463                        var _parent  = _element.parentNode;
464       
465                        _parent.removeChild( _element );
466                }
467        }
468       
469        function removeGroup()
470        {
471                var _parent = arguments[0];
472               
473                if( _parent.childNodes.length <= 2 )
474                        _parent.parentNode.removeChild(_parent);
475        }
476       
477        function renameContact()
478        {
479                if( arguments.length > 0 )
480                {
481                        var _jid        = arguments[0];
482                        var _index      = arguments[1];
483                       
484                        TrophyIM.renameContact( _jid, _index );
485                }
486        }
487       
488        function renameGroup()
489        {
490                if( arguments.length > 0 )
491                {
492                        var _jid        = arguments[0];
493                        var _index      = arguments[1];
494                       
495                        TrophyIM.renameGroup( _jid , _index );
496                }
497        }
498       
499        function rosterDiv()
500        {
501                var paramListContact =
502                {
503                        'idUser'                : Base64.decode(getUserCurrent().jid),
504                        'full_name'             : (( fullName.length < 25 ) ? fullName : ( fullName.substring( 0, 25) + "...")),
505                        'path_jabberit' : path_jabberit,
506                        'zIndex_'               : zIndex++
507                };
508               
509                var winRosterDiv =
510                {
511                         id_window              : "window_Roster_im",
512                         width                  : 250,
513                         height                 : 410,
514                         top                    : 50,
515                         left                   : 50,
516                         draggable              : true,
517                         visible                : "display",
518                         resizable              : true,
519                         zindex                 : zIndex++,
520                         title                  : "Expresso Messenger - Contatos",
521                         closeAction    : "hidden",
522                         content                : Xtools.parse(Xtools.xml("contacts_list"),"contactsList.xsl", paramListContact)       
523                };
524               
525                _winBuild( winRosterDiv );
526
527                // Photo User
528                getPhotoUser(Base64.decode(getUserCurrent().jid));
529        }
530
531        function searchUser()
532        {
533                var _input      = getElement('search_user_jabber');
534               
535                if( _input.value.length >= 3 )
536                        addUser.search();
537                else
538                        alert('Your search argument must be longer than 3 characters.');
539        }
540       
541        function setAutorization(jidTo, indexTo)
542        {
543        var divItenContact = null;
544       
545        if( ( divItenContact = getElement('itenContact_' + jidTo + '_' + indexTo )))
546        {       
547                var subscription = divItenContact.getAttribute('subscription');
548               
549                switch(subscription)
550                {
551                        case 'from':
552                               
553                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe');
554                                break;
555
556                        case 'none' :
557                       
558                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe');
559                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed');
560                               
561                                break;
562
563                        case 'not-in-roster':
564                                       
565                                setTimeout(function()
566                                        {
567                                        var _add = "";
568                               
569                                        if( ( _add = confirm("Deseja adicionar o usuario!")) )         
570                                        {
571                                                addUser.add( jidTo, indexTo );
572                                        }
573                                       
574                                        },100);
575                               
576                                        break;
577                                       
578                        case 'to' :
579                               
580                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed');
581                                       
582                        case 'subscribe' :
583                               
584                                TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe');
585                               
586                                        break;
587                }
588        }       
589        }
590       
591        function setPresence()
592        {
593                if( arguments.length > 0 )
594                {
595                        var element = arguments[0];
596                       
597                        if( showhidden == null )
598                                showhidden = new ShowHidden(300);
599                       
600                        var _status = [
601                                               ['Afastado', 'away', '<img src="'+path_jabberit+'templates/default/images/away.gif" />'],
602                                               ['Disponível', 'available', '<img src="'+path_jabberit+'templates/default/images/available.gif" />'],
603                                               ['Livre p/ Conversa', 'chat', '<img src="'+path_jabberit+'templates/default/images/chat.gif" />'],
604                                               ['Não Disponível', 'xa', '<img src="'+path_jabberit+'templates/default/images/xa.gif" />'],
605                                               ['Ocupado', 'dnd', '<img src="'+path_jabberit+'templates/default/images/dnd.gif" />'],
606                                               ['Desconectado', 'unavailable', '<img src="'+path_jabberit+'templates/default/images/unavailable.gif" />'],
607                                               ['Mensagem de Status...', 'status', '<img src="'+path_jabberit+'templates/default/images/message_normal.gif" />'],                                               
608                                          ];
609                       
610                        var _itens = "";
611                       
612                        for( var i in _status )
613                        {
614                                if( typeof( _status[i]) == "object" )
615                                {
616                                        _itens += '<span style="cursor:pointer;" onclick="TrophyIM.setPresence(\''+_status[i][1]+'\'); loadscript.setStatusJabber(\''+_status[i][0]+'\',\''+_status[i][1]+'\');">';
617                                        _itens += _status[i][2]+ "<span style='margin:3px;'>" + _status[i][0] + "</span></span><br/>";
618                                }
619                        }
620                       
621                        var _statusItens = document.createElement("div");
622                                _statusItens.style.marginTop    = "65px";
623                                _statusItens.style.marginLeft   = "67px";
624                                _statusItens.className                  = "x-menu";
625                                _statusItens.style.zIndex               = '99999';
626                                _statusItens.innerHTML                  = _itens; 
627                                _statusItens.onclick                    = function(){ showhidden.hiddenObject(false); };
628                                                                                 
629                                showhidden.action('onmouseover', 'onmouseout', _statusItens);
630                               
631                        element.parentNode.onmouseout   = function(){ showhidden.hiddenObject(false); };
632                        element.parentNode.onmouseover  = function(){ showhidden.hiddenObject(true); };
633                        element.parentNode.appendChild(_statusItens);
634                }
635        }
636
637        function setSelectEditable(element)
638        {
639                if( getElement('selectBox0') == null )
640                        selectEditable.create(element);
641        }
642
643        function setStatusJabber()
644        {
645                if( arguments.length > 0 )
646                {
647                        if( arguments[1] != 'status' )
648                        {
649                                var _text       = arguments[0];
650                                var _img        = arguments[1];
651                                                                                                                                       
652                                getElement('statusJabberText').innerHTML                = _text;
653                                getElement('statusJabberImg').style.background  = "url('"+path_jabberit+"templates/default/images/"+_img+".gif')";
654                                getElement('status_jabber_expresso').style.background = "url('"+path_jabberit+"templates/default/images/"+_img+".gif') no-repeat";
655                        }
656                }       
657        }
658
659        function teste_meu(_jid, _password )
660        {
661                userCurrent =
662                {
663                        'jid'           : _jid.substring(11, _jid.length),
664                        'password'      : _password.substring(11, _password.length)
665                }               
666        }
667       
668        function setUserCurrent()
669        {
670                conn.go('p.ff.data_0',
671                                        function(_User)
672                                        {
673                                                var _user = _User;
674                                               
675                                                conn.go('p.ff.data_1',
676                                                                function(_pass)
677                                                                {
678                                                                        teste_meu( _user, _pass );
679                                                                });
680                                        });     
681        }
682
683        function loadIM()
684        {
685                if( arguments.length > 0 )
686                {
687                        var files = [
688                                                path_jabberit + 'js/connector.js',
689                                                path_jabberit + 'js/xtools.js',
690                                                path_jabberit + 'js/dragdrop.js',
691                                                path_jabberit + 'js/makeW.js',
692                                                path_jabberit + 'js/show_hidden.js',
693                                                path_jabberit + 'js/trophyim.js',
694                                                path_jabberit + 'js/AddUser.js',
695                                                path_jabberit + 'js/SelectEditable.js',
696                                                path_jabberit + 'templates/default/css/button.css',
697                                                path_jabberit + 'templates/default/css/common.css',
698                                                path_jabberit + 'templates/default/css/selectEditableStyle.css',
699                                                path_jabberit + 'templates/default/css/' + theme_jabberit
700                                    ];
701                        // FullName
702                        fullName = arguments[0];
703                       
704                        loadScripts(files);
705                       
706                        setTimeout(function()
707                        {
708                                // Object Xtools       
709                                if( Xtools == null )
710                                        Xtools = new xtools(path_jabberit);
711                               
712                                // Object Conector
713                                if( conn == null )
714                                        conn = new AjaxConnector(path_jabberit);
715                               
716                                // Object Add User
717                                if( addUser == null )
718                                        addUser = new addUserIM(Xtools, conn);
719
720                               
721                                // Object SelectEditable
722                                if( selectEditable == null )
723                                        selectEditable = new SelectEditable();
724                                       
725                                // Add Jabber in StatusBar;
726                                addIcon();
727                               
728                                window.document.oncontextmenu = function()
729                                {
730                                        return true;
731                                };
732
733                        }, 1500);
734                }
735        }
736       
737        loadIM.prototype.adIcon                         = addIcon;
738        loadIM.prototype.actionButton           = actionButton;
739        loadIM.prototype.addContact                     = addContact;
740        loadIM.prototype.clrAllContacts         = clrAllContacts;
741        loadIM.prototype.configEvents           = configEvents;
742        loadIM.prototype.getPhotoUser           = getPhotoUser;
743        loadIM.prototype.getUserCurrent         = getUserCurrent;
744        loadIM.prototype.getZIndex                      = getZindex;
745        loadIM.prototype.groupsHidden           = groupsHidden;
746        loadIM.prototype.groupsVisible          = groupsVisible;
747        loadIM.prototype.keyPressSearch         = keyPressSearch;       
748        loadIM.prototype.loginPage                      = loginPage;
749        loadIM.prototype.notification           = notificationNewMessage;
750        loadIM.prototype.parse                          = parse;
751        loadIM.prototype.searchUser                     = searchUser
752        loadIM.prototype.setAutorization        = setAutorization;
753        loadIM.prototype.setPresence            = setPresence;
754        loadIM.prototype.setStatusJabber        = setStatusJabber;
755        loadIM.prototype.setSelectEditable      = setSelectEditable;
756        loadIM.prototype.setUserCurrent         = setUserCurrent;
757        loadIM.prototype.removeContact          = removeContact;
758        loadIM.prototype.removeElement          = removeElement;
759        loadIM.prototype.removeGroup            = removeGroup;
760        loadIM.prototype.renameContact          = renameContact;
761        loadIM.prototype.renameGroup            = renameGroup;
762        loadIM.prototype.rosterDiv                      = rosterDiv;
763       
764        window.LoadIM = loadIM;
765       
766})();
Note: See TracBrowser for help on using the repository browser.