src/LiveDevelopment/main.js
function _showStatusChangeReason(reason) {
        // Destroy the previous twipsy (options are not updated otherwise)
        _$btnGoLive.twipsy("hide").removeData("twipsy");

        // If there was no reason or the action was an explicit request by the user, don't show a twipsy
        if (!reason || reason === "explicit_close") {
            return;
        }

        // Translate the reason
        var translatedReason = Strings["LIVE_DEV_" + reason.toUpperCase()];
        if (!translatedReason) {
            translatedReason = StringUtils.format(Strings.LIVE_DEV_CLOSED_UNKNOWN_REASON, reason);
        }

        // Configure the twipsy
        var options = {
            placement: "left",
            trigger: "manual",
            autoHideDelay: 5000,
            title: function () {
                return translatedReason;
            }
        };

        // Show the twipsy with the explanation
        _$btnGoLive.twipsy(options).twipsy("show");
    }
function _showStatusChangeReason(reason) {
        // Destroy the previous twipsy (options are not updated otherwise)
        _$btnGoLive.twipsy("hide").removeData("twipsy");

        // If there was no reason or the action was an explicit request by the user, don't show a twipsy
        if (!reason || reason === "explicit_close") {
            return;
        }

        // Translate the reason
        var translatedReason = Strings["LIVE_DEV_" + reason.toUpperCase()];
        if (!translatedReason) {
            translatedReason = StringUtils.format(Strings.LIVE_DEV_CLOSED_UNKNOWN_REASON, reason);
        }

        // Configure the twipsy
        var options = {
            placement: "left",
            trigger: "manual",
            autoHideDelay: 5000,
            title: function () {
                return translatedReason;
            }
        };

        // Show the twipsy with the explanation
        _$btnGoLive.twipsy(options).twipsy("show");
    }
function _showStatusChangeReason ( reason ) { // Destroy the previous twipsy (options are not updated otherwise) _$btnGoLive . twipsy ( "hide" ) . removeData ( "twipsy" ) ; // If there was no reason or the action was an explicit request by the user, don't show a twipsy if ( ! reason || reason === "explicit_close" ) { return ; } // Translate the reason var translatedReason = Strings [ "LIVE_DEV_" + reason . toUpperCase ( ) ] ; if ( ! translatedReason ) { translatedReason = StringUtils . format ( Strings . LIVE_DEV_CLOSED_UNKNOWN_REASON , reason ) ; } // Configure the twipsy var options = { placement : "left" , trigger : "manual" , autoHideDelay : 5000 , title : function ( ) { return translatedReason ; } } ; // Show the twipsy with the explanation _$btnGoLive . twipsy ( options ) . twipsy ( "show" ) ; }
Called on status change
Called on status change