Changeset 869

Show
Ignore:
Timestamp:
12/10/06 02:08:13 (2 years ago)
Author:
gboggs
Message:

- Send the class="stuff" to the right method in MT/App/CMS->asset_insert().
- Simplify the asset_insert template syntax and escape the asset html to insert.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r865 r869  
    10041004        return $app->errtrans("Can't load asset, $asset."); 
    10051005    my $param = { 
    1006         asset_html => $asset->as_html, 
    1007         class => $app->param('class'), 
     1006        asset_html => $asset->as_html(class => $app->param('class') || ''), 
    10081007        magic_token => $app->param('magic_token'), 
    10091008    }; 
  • branches/wheeljack/tmpl/cms/asset_insert.tmpl

    r865 r869  
    11<TMPL_INCLUDE NAME=header-dialog.tmpl> 
    22<script type="text/javascript"> 
    3 var win = window.parent.document; 
    4 var str = getByID('text', win); 
    5 setSelection(str, '<TMPL_VAR NAME=ASSET_HTML>'); 
     3var str = getByID('text', window.parent.document); 
     4setSelection(str, '<TMPL_VAR NAME=ASSET_HTML ESCAPE=HTML>'); 
    65closeDialog(); 
    76</script>