Index: trunk/phase3/skins/common/mwsuggest.js |
— | — | @@ -686,36 +686,28 @@ |
687 | 687 | }; |
688 | 688 | |
689 | 689 | /** Create the container div that will hold the suggested titles */ |
690 | | -window.os_createContainer = function(r) { |
691 | | - var c = document.createElement('div'); |
692 | | - var s = document.getElementById(r.searchbox); |
693 | | - var pos = os_getElementPosition(r.searchbox); |
| 690 | +window.os_createContainer = function( r ) { |
| 691 | + var c = document.createElement( 'div' ); |
| 692 | + var s = document.getElementById( r.searchbox ); |
| 693 | + var pos = os_getElementPosition( r.searchbox ); |
694 | 694 | var left = pos.left; |
695 | 695 | var top = pos.top + s.offsetHeight; |
696 | 696 | c.className = 'os-suggest'; |
697 | | - c.setAttribute('id', r.container); |
698 | | - document.body.appendChild(c); |
| 697 | + c.setAttribute( 'id', r.container ); |
| 698 | + document.body.appendChild( c ); |
699 | 699 | |
700 | 700 | // dynamically generated style params |
701 | 701 | // IE workaround, cannot explicitely set "style" attribute |
702 | | - c = document.getElementById(r.container); |
| 702 | + c = document.getElementById( r.container ); |
703 | 703 | c.style.top = top + 'px'; |
704 | 704 | c.style.left = left + 'px'; |
705 | 705 | c.style.width = s.offsetWidth + 'px'; |
706 | 706 | |
707 | 707 | // mouse event handlers |
708 | | - c.onmouseover = function(event) { |
709 | | - os_eventMouseover(r.searchbox, event); |
710 | | - }; |
711 | | - c.onmousemove = function(event) { |
712 | | - os_eventMousemove(r.searchbox, event); |
713 | | - }; |
714 | | - c.onmousedown = function(event) { |
715 | | - return os_eventMousedown(r.searchbox, event); |
716 | | - }; |
717 | | - c.onmouseup = function(event) { |
718 | | - os_eventMouseup(r.searchbox, event); |
719 | | - }; |
| 708 | + c.onmouseover = function( event ) { os_eventMouseover( r.searchbox, event ); }; |
| 709 | + c.onmousemove = function( event ) { os_eventMousemove( r.searchbox, event ); }; |
| 710 | + c.onmousedown = function( event ) { return os_eventMousedown( r.searchbox, event ); }; |
| 711 | + c.onmouseup = function( event ) { os_eventMouseup( r.searchbox, event ); }; |
720 | 712 | return c; |
721 | 713 | }; |
722 | 714 | |