source: sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js @ 2637

Revision 2637, 20.3 KB checked in by alexandrecorreia, 14 years ago (diff)

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

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