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

Revision 2689, 20.6 KB checked in by alexandrecorreia, 14 years ago (diff)

Ticket #986 - Correcao para funcionar no expressoMail, quando aparece a barra amarela no topo da pagina

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