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

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