欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

firefox下jQuery UI Autocomplete 1.8.*中文輸入修正方法

 更新時(shí)間:2012年09月19日 14:16:45   作者:  
在FF下,切換到中文輸入法,再輸入中文,是不能立即自動(dòng)查詢(xún),需要按下其他按鍵,比如CTRL,后來(lái),通過(guò)修改源代碼即可修復(fù)這個(gè)問(wèn)題

找到以下代碼:

復(fù)制代碼 代碼如下:

.bind( "blur.autocomplete", function( event ) {
                if ( self.options.disabled ) {
                    return;
                }

                clearTimeout( self.searching );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                self.closing = setTimeout(function() {
                    self.close( event );
                    self._change( event );
                }, 150 );
            });


替換成:
復(fù)制代碼 代碼如下:

.bind( "blur.autocomplete", function( event ) {
                if ( self.options.disabled ) {
                    return;
                }

                clearTimeout( self.searching );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                self.closing = setTimeout(function() {
                    self.close( event );
                    self._change( event );
                }, 150 );
            }).bind('input',function (c) {//jQuery UI Autocomplete 1.8.*中文輸入修正
                self.search(self.item);
            });


經(jīng)過(guò)經(jīng)驗(yàn),在1.8.16-1.8.23(目前最新版本),均可實(shí)現(xiàn)

相關(guān)文章

最新評(píng)論