Changeset 894
- Timestamp:
- 12/13/06 00:13:50 (2 years ago)
- Files:
-
- branches/wheeljack/lib/MT/App/CMS.pm (modified) (2 diffs)
- branches/wheeljack/tmpl/cms/asset_insert.tmpl (modified) (1 diff)
- branches/wheeljack/tmpl/cms/dialog_list_assets.tmpl (modified) (3 diffs)
- branches/wheeljack/tmpl/cms/edit_entry.tmpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/wheeljack/lib/MT/App/CMS.pm
r888 r894 986 986 blog_name => $blog->name, 987 987 edit_blog_id => $blog_id, 988 edit_field => $app->param('edit_field'), 988 989 dialog_view => $app->param('dialog_view') ? 1 : 0, 989 990 ) : ()), … … 1004 1005 my $param = { 1005 1006 asset_html => $asset->as_html(class => $app->param('class') || ''), 1006 magic_token => $app->param('magic_token'),1007 edit_field => $app->param('edit_field'), 1007 1008 }; 1008 1009 $app->build_page('asset_insert.tmpl', $param); branches/wheeljack/tmpl/cms/asset_insert.tmpl
r870 r894 1 1 <TMPL_INCLUDE NAME=header-dialog.tmpl> 2 2 <script type="text/javascript"> 3 var str = getByID('text', window.parent.document); 4 setSelection(str, '<TMPL_VAR NAME=ASSET_HTML>'); 3 <!-- 4 var str = getByID('<TMPL_VAR NAME=EDIT_FIELD>', window.parent.document); 5 setSelection(str, '<TMPL_VAR NAME=ASSET_HTML ESCAPE=JS>'); 5 6 closeDialog(); 7 //--> 6 8 </script> 7 9 <TMPL_INCLUDE NAME=footer-dialog.tmpl> branches/wheeljack/tmpl/cms/dialog_list_assets.tmpl
r893 r894 122 122 if (!data) { 123 123 closeDialog(); 124 return; 124 125 } 125 126 // user made a selection and clicked insert... … … 140 141 panel.parent = dlg; 141 142 dlg.open({}, dialogClose); 142 //tableSelect = new TC.TableSelect( "selector" );143 //tableSelect.rowSelect = true;144 143 } 145 144 TC.attachLoadEvent( init ); … … 178 177 <input type="hidden" name="blog_id" value="<TMPL_VAR NAME=EDIT_BLOG_ID>" /> 179 178 <input type="hidden" name="id" value="" /> 179 <input type="hidden" name="edit_field" value="<TMPL_VAR NAME=EDIT_FIELD>" /> 180 180 </TMPL_IF> 181 181 </form> branches/wheeljack/tmpl/cms/edit_entry.tmpl
r884 r894 541 541 write('<img title="<MT_TRANS phrase="Insert Email Link" escape="singlequotes">" onclick="return insertLink(document.entry_form.text, 1)" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/email.gif" alt="<MT_TRANS phrase="Insert Email Link" escape="singlequotes">" width="26" height="19" />'); 542 542 write('<img title="<MT_TRANS phrase="Quote" escape="singlequotes">" onclick="return formatStr(document.entry_form.text, \'blockquote\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/quote.gif" alt="<MT_TRANS phrase="Quote" escape="singlequotes">" width="26" height="19" />'); 543 write('<img title="<MT_TRANS phrase="Insert Image" escape="singlequotes">" onclick="return openDialog(document.entry_form, \'list_assets\', \'_ _type=asset&blog_id=<TMPL_VAR NAME=BLOG_ID>&dialog_view=1&filter=class&filter_val=image&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/add_image.gif" alt="<MT_TRANS phrase="Insert Link" escape="singlequotes">" width="26" height="19" />');543 write('<img title="<MT_TRANS phrase="Insert Image" escape="singlequotes">" onclick="return openDialog(document.entry_form, \'list_assets\', \'_type=asset&edit_field=text&blog_id=<TMPL_VAR NAME=BLOG_ID>&dialog_view=1&filter=class&filter_val=image&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/add_image.gif" alt="<MT_TRANS phrase="Insert Image" escape="singlequotes">" width="26" height="19" />'); 544 544 } 545 545 } … … 584 584 write('<img title="<MT_TRANS phrase="Insert Email Link">" onclick="return insertLink(document.entry_form.text_more, 1)" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/email.gif" alt="<MT_TRANS phrase="Insert Email Link">" width="26" height="19" />'); 585 585 write('<img title="<MT_TRANS phrase="Quote">" onclick="return formatStr(document.entry_form.text_more, \'blockquote\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/quote.gif" alt="<MT_TRANS phrase="Quote">" width="26" height="19" />'); 586 write('<img title="<MT_TRANS phrase="Insert Image" escape="singlequotes">" onclick="return openDialog(document.entry_form, \'list_assets\', \'_type=asset&edit_field=text_more&blog_id=<TMPL_VAR NAME=BLOG_ID>&dialog_view=1&filter=class&filter_val=image&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/add_image.gif" alt="<MT_TRANS phrase="Insert Image" escape="singlequotes">" width="26" height="19" />'); 586 587 } 587 588 }
