Sharepoint ChromeブラウザでエラーMoveSiteTitle is not defined

4802 ワード

Chromeでエラーが発生すると、JSエラーが発生し、Update panelのボタンが反応しなくなる恐れがあります.これはSharepoint 2010 ChromeのBugです.
Uncaugt ReferenceError:documentGetElements ByName is not defined 
Uncaugt ReferenceError:MoveSiteTitle is not defined
マスターページを修正して、JS最終部に入ります.
<script type="text/javascript">

/*****************

 *  

 * Code to handle the SharePoint / Chome bug

 *

 *****************/



function chromeNudge() {

    /// <summary>

    /// If SharePoints body onload handler has not fired yet

    /// this function calls it manually

    /// </summary>

    if (!_spBodyOnLoadCalled) {

        if (window.console) {

            window.console.log('Chrome Bug: _spBodyOnLoadWrapper did not fire, calling manually.');

        }

        _spBodyOnLoadWrapper();

    }

}



function chromeNudgeDelay() {

    /// <summary>

    /// If the current browser is Chrome, set a Timeout

    /// to call chromeNudge to at that time evaluate

    /// whether the onload wrapper needs a "nudge"

    /// </summary>

    if (navigator && navigator.userAgent && /chrome/.test(navigator.userAgent.toLowerCase())) {

        setTimeout(chromeNudge, 250);

    }

}



// call chromeNudgeDelay after MS Ajax init event (aka body load)

Sys.Application.add_init(chromeNudgeDelay);

</script>