Changeset 890

Show
Ignore:
Timestamp:
12/12/06 20:48:08 (2 years ago)
Author:
gboggs
Message:

Out with the "this works but ain't right yet" mode handling and in with location.href (and the asset id too).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/tmpl/cms/upload_complete.tmpl

    r880 r890  
    2626</TMPL_IF> 
    2727<TMPL_IF NAME=IS_IMAGE> 
     28    url += '&width=<TMPL_VAR NAME=WIDTH>&height=<TMPL_VAR NAME=HEIGHT>&image_type=<TMPL_VAR NAME=IMAGE_TYPE>'; 
    2829    if (f.include.checked) {  
    2930        url += '&include=1'; 
     
    3132        url += '&link=1'; 
    3233    } 
    33     url += '&width=<TMPL_VAR NAME=WIDTH>&height=<TMPL_VAR NAME=HEIGHT>&image_type=<TMPL_VAR NAME=IMAGE_TYPE>'; 
    3434    if (f.include.checked) { 
    3535        url += '&wrap_text=1&align='; 
     
    4343</TMPL_IF> 
    4444    if (mode == 'asset_insert') { 
    45         document.asset_insert.submit(); 
    46         return true; 
     45        url += '&id=<TMPL_VAR NAME=ASSET_ID>'; 
     46        location.href = url; 
     47    } else { 
     48        closeDialog(url); 
    4749    } 
    48  
    49     closeDialog(url); 
    5050} 
    5151 
     
    100100//--> 
    101101</script> 
    102  
    103 <form name="asset_insert" action="<TMPL_VAR NAME=SCRIPT_URL>"> 
    104 <input type="hidden" name="__mode" value="asset_insert" /> 
    105 <input type="hidden" name="id" value="<TMPL_VAR NAME=ASSET_ID>" /> 
    106 <input type="hidden" name="blog_id" value="<TMPL_VAR NAME=BLOG_ID>" /> 
    107 </form> 
    108102 
    109103<form action="<TMPL_VAR NAME=SCRIPT_URL>" onsubmit="return false;">