Swat/SwatMessageDisplay.php
protected function getInlineJavaScript()
    {
        static $shown = false;

        if (!$shown) {
            $javascript = $this->getInlineJavaScriptTranslations();
            $shown = true;
        } else {
            $javascript = '';
        }

        $dismissable_messages =
            '[' . implode(', ', $this->dismissable_messages) . ']';

        $javascript .= sprintf(
            "var %s_obj = new %s('%s', %s);",
            $this->id,
            $this->getJavaScriptClass(),
            $this->id,
            $dismissable_messages
        );

        return $javascript;
    }
protected function getInlineJavaScript()
    {
        static $shown = false;

        if (!$shown) {
            $javascript = $this->getInlineJavaScriptTranslations();
            $shown = true;
        } else {
            $javascript = '';
        }

        $dismissable_messages =
            '[' . implode(', ', $this->dismissable_messages) . ']';

        $javascript .= sprintf(
            "var %s_obj = new %s('%s', %s);",
            $this->id,
            $this->getJavaScriptClass(),
            $this->id,
            $dismissable_messages
        );

        return $javascript;
    }
protected function getInlineJavaScript ( ) { static $ shown = false ; if ( ! $ shown ) { $ javascript = $ this -> getInlineJavaScriptTranslations ( ) ; $ shown = true ; } else { $ javascript = '' ; } $ dismissable_messages = '[' . implode ( ', ' , $ this -> dismissable_messages ) . ']' ; $ javascript .= sprintf ( "var %s_obj = new %s('%s', %s);" , $ this -> id , $ this -> getJavaScriptClass ( ) , $ this -> id , $ dismissable_messages ) ; return $ javascript ; }
Gets the inline JavaScript for hiding messages
Gets the inline JavaScript for hiding messages