Changeset 1352 for plugins

Show
Ignore:
Timestamp:
11/25/08 16:29:55 (6 weeks ago)
Author:
rickc
Message:

Change footer js injection to use the new stack methods.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/markup/trunk/markup.plugin.php

    r1346 r1352  
    127127            $skin = Options::get( 'Markup__skin' ); 
    128128            $set = ( ( 'markitup' == $skin ) ? Options::get( 'Markup__markup_type' ) : '' ); 
    129             echo <<<MARKITUP 
    130 <script type="text/javascript"> 
     129            $markup = <<<MARKITUP 
    131130$(document).ready(function() { 
    132131    mySettings.nameSpace = '$set'; 
     
    144143    }); 
    145144}); 
    146 </script> 
    147145MARKITUP; 
    148     } 
    149   } 
    150      
     146            Stack::add( 'admin_footer_javascript', $markup, 'markup_footer', 'jquery' ); 
     147        } 
     148    } 
     149 
    151150  public function action_update_check() { 
    152151    Update::add( 'markUp', 'F695D390-2687-11DD-B5E1-2D6F55D89593',  $this->info->version );