Changeset 960
- Timestamp:
- 12/20/06 01:20:43 (2 years ago)
- Files:
-
- branches/wheeljack/tmpl/cms/backup_restore.tmpl (modified) (2 diffs)
- branches/wheeljack/tmpl/cms/edit_entry.tmpl (modified) (4 diffs)
- branches/wheeljack/tmpl/cms/list_asset.tmpl (modified) (1 diff)
- branches/wheeljack/tmpl/cms/list_association.tmpl (modified) (3 diffs)
- branches/wheeljack/tmpl/cms/list_role.tmpl (modified) (1 diff)
- branches/wheeljack/tmpl/cms/restore_upload_file.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/wheeljack/tmpl/cms/backup_restore.tmpl
r951 r960 12 12 el_name.innerHTML = '(<MT_TRANS phrase="None Selected.">)'; 13 13 } 14 openDialog( this.form, 'dialog_select_weblog');14 openDialog(false, 'dialog_select_weblog'); 15 15 descriptionObject.innerHTML = '<MT_TRANS phrase="This option allows you to choose exactly what you want to backup.">'; 16 16 } else { … … 176 176 <TMPL_IF NAME=OPEN_DIALOG> 177 177 <script type="text/javascript"> 178 openDialog(this.form, 'dialog_restore_upload', 'magic_token=<TMPL_VAR NAME=MAGIC_TOKEN>&files=<TMPL_VAR NAME=FILES>&assets=<TMPL_VAR NAME=ASSETS>&current_file=<TMPL_VAR NAME=FILENAME>&last=<TMPL_VAR NAME=LAST>&redirect=1;'); 178 <!-- 179 openDialog(false, 'dialog_restore_upload', 'magic_token=<TMPL_VAR NAME=MAGIC_TOKEN>&files=<TMPL_VAR NAME=FILES>&assets=<TMPL_VAR NAME=ASSETS>&current_file=<TMPL_VAR NAME=FILENAME>&last=<TMPL_VAR NAME=LAST>&redirect=1;'); 180 //--> 179 181 </script> 180 182 </TMPL_IF> branches/wheeljack/tmpl/cms/edit_entry.tmpl
r935 r960 252 252 </TMPL_IF> 253 253 } 254 var el = getByID("dialog-container"); 255 if (el) el.style.position = 'fixed'; 254 256 initDirty(); 255 257 entryFocus = new TC.Focus("edit-entry"); 256 <TMPL_IF NAME=DEFER_TAG_LOAD>deferredTagLoad();< /TMPL_IF>257 <TMPL_IF NAME=TAGS_JS>initTags();</TMPL_IF> 258 <TMPL_IF NAME=DEFER_TAG_LOAD>deferredTagLoad();<TMPL_ELSE> 259 <TMPL_IF NAME=TAGS_JS>initTags();</TMPL_IF></TMPL_IF> 258 260 <TMPL_UNLESS NAME=ID>title.focus();</TMPL_UNLESS> 259 261 } … … 320 322 321 323 return true; 322 }323 324 function fixDialog() {325 var el = getByID("dialog-container");326 el.style.position = 'fixed';327 324 } 328 325 … … 547 544 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" />'); 548 545 write('<img title="|" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/separator.gif" alt="|" width="7" height="19" />'); 549 write('<img title="<MT_TRANS phrase="Insert Image" escape=singlequotes">" onclick=" fixDialog();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" />');550 write('<img title="<MT_TRANS phrase="Insert File" escape=singlequotes">" onclick=" fixDialog();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=file&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/upload_file.gif" alt="<MT_TRANS phrase="Insert File" escape="singlequotes">" width="26" height="19" />');546 write('<img title="<MT_TRANS phrase="Insert Image" escape=singlequotes">" onclick="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" />'); 547 write('<img title="<MT_TRANS phrase="Insert File" escape=singlequotes">" onclick="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=file&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/upload_file.gif" alt="<MT_TRANS phrase="Insert File" escape="singlequotes">" width="26" height="19" />'); 551 548 } 552 549 } … … 592 589 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" />'); 593 590 write('<img title="|" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/separator.gif" alt="|" width="7" height="19" />'); 594 write('<img title="<MT_TRANS phrase="Insert Image" escape=singlequotes">" onclick=" fixDialog();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" />');595 write('<img title="<MT_TRANS phrase="Insert File" escape=singlequotes">" onclick=" fixDialog();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=file&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/upload_file.gif" alt="<MT_TRANS phrase="Insert File" escape="singlequotes">" width="26" height="19" />');591 write('<img title="<MT_TRANS phrase="Insert Image" escape=singlequotes">" onclick="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" />'); 592 write('<img title="<MT_TRANS phrase="Insert File" escape=singlequotes">" onclick="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=file&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/upload_file.gif" alt="<MT_TRANS phrase="Insert File" escape="singlequotes">" width="26" height="19" />'); 596 593 } 597 594 } branches/wheeljack/tmpl/cms/list_asset.tmpl
r922 r960 74 74 <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/create.gif" alt="<MT_TRANS phrase="Upload New File">" width="9" height="9" /> 75 75 76 <a href="#" onclick="return openDialog( this.form, 'start_upload', '__type=asset&blog_id=<TMPL_VAR NAME=BLOG_ID>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>')"><MT_TRANS phrase="Upload New File"></a></li>76 <a href="#" onclick="return openDialog(false, 'start_upload', 'blog_id=<TMPL_VAR NAME=BLOG_ID>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>')"><MT_TRANS phrase="Upload New File"></a></li> 77 77 78 78 </TMPL_IF> branches/wheeljack/tmpl/cms/list_association.tmpl
r881 r960 51 51 <li class="special"> 52 52 <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/<TMPL_IF NAME=STATUS_ENABLED>create<TMPL_ELSE>create-disabled</TMPL_IF>.gif" alt="<MT_TRANS phrase="Add user to a weblog">" width="9" height="9" /> 53 <TMPL_IF NAME=STATUS_ENABLED><a href="javascript:void(0)" onclick="return openDialog( this.form, 'dialog_grant_role', 'author_id=<TMPL_VAR NAME=EDIT_AUTHOR_ID>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>%26author_id=<TMPL_VAR NAME=EDIT_AUTHOR_ID>')"><TMPL_ELSE><span class="no_link" title="<MT_TRANS phrase="You can not create associations for disabled users.">"></TMPL_IF><MT_TRANS phrase="Add [_1] to a weblog" params="<TMPL_VAR NAME=EDIT_AUTHOR_NAME>"><TMPL_IF NAME=STATUS_ENABLED></a><TMPL_ELSE></span></TMPL_IF>53 <TMPL_IF NAME=STATUS_ENABLED><a href="javascript:void(0)" onclick="return openDialog(false, 'dialog_grant_role', 'author_id=<TMPL_VAR NAME=EDIT_AUTHOR_ID>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>%26author_id=<TMPL_VAR NAME=EDIT_AUTHOR_ID>')"><TMPL_ELSE><span class="no_link" title="<MT_TRANS phrase="You can not create associations for disabled users.">"></TMPL_IF><MT_TRANS phrase="Add [_1] to a weblog" params="<TMPL_VAR NAME=EDIT_AUTHOR_NAME>"><TMPL_IF NAME=STATUS_ENABLED></a><TMPL_ELSE></span></TMPL_IF> 54 54 </li> 55 55 </TMPL_IF> … … 61 61 <li class="special"> 62 62 <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/create.gif" alt="<MT_TRANS phrase="Assign role to a new user"> width="9" height="9" /> 63 <a href="javascript:void(0)" onclick="return openDialog( this.form, 'dialog_grant_role', '_type=user&role_id=<TMPL_VAR NAME=ROLE_ID>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>%26role_id=<TMPL_VAR NAME=ROLE_ID>')"><MT_TRANS phrase="Assign Role to User"></a>63 <a href="javascript:void(0)" onclick="return openDialog(false, 'dialog_grant_role', '_type=user&role_id=<TMPL_VAR NAME=ROLE_ID>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>%26role_id=<TMPL_VAR NAME=ROLE_ID>')"><MT_TRANS phrase="Assign Role to User"></a> 64 64 </li> 65 65 </TMPL_IF> … … 76 76 <li class="special"> 77 77 <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/create.gif" alt="<MT_TRANS phrase="Add a user to this weblog">" width="9" height="9" /> 78 <a href="javascript:void(0)" onclick="return openDialog( this.form, 'dialog_grant_role', '_type=user<TMPL_IF NAME=BLOG_ID>&blog_id=<TMPL_VAR NAME=BLOG_ID></TMPL_IF>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>')"><MT_TRANS phrase="Add a user to this weblog"></a>78 <a href="javascript:void(0)" onclick="return openDialog(false, 'dialog_grant_role', '_type=user<TMPL_IF NAME=BLOG_ID>&blog_id=<TMPL_VAR NAME=BLOG_ID></TMPL_IF>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>')"><MT_TRANS phrase="Add a user to this weblog"></a> 79 79 </li> 80 80 <TMPL_ELSE> 81 81 <li class="special"> 82 82 <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/create.gif" alt="<MT_TRANS phrase="Create a User Association">" width="9" height="9" /> 83 <a href="javascript:void(0)" onclick="return openDialog( this.form, 'dialog_grant_role', '_type=user<TMPL_IF NAME=BLOG_ID>&blog_id=<TMPL_VAR NAME=BLOG_ID></TMPL_IF>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>')"><MT_TRANS phrase="Create a User Association"></a>83 <a href="javascript:void(0)" onclick="return openDialog(false, 'dialog_grant_role', '_type=user<TMPL_IF NAME=BLOG_ID>&blog_id=<TMPL_VAR NAME=BLOG_ID></TMPL_IF>&return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>')"><MT_TRANS phrase="Create a User Association"></a> 84 84 </li> 85 85 </TMPL_IF> branches/wheeljack/tmpl/cms/list_role.tmpl
r752 r960 38 38 <li class="special"> 39 39 <img src="<TMPL_VAR NAME=STATIC_URI>images/status_icons/create.gif" alt="<MT_TRANS phrase="Grant a new role">" width="9" height="9" /> 40 <a href="javascript:void(0)" onclick="return openDialog( this.form, 'dialog_grant_role')"><MT_TRANS phrase="Grant another role to [_1]" params="<TMPL_VAR NAME=EDIT_AUTHOR_NAME ESCAPE=HTML>"></a>40 <a href="javascript:void(0)" onclick="return openDialog(false, 'dialog_grant_role')"><MT_TRANS phrase="Grant another role to [_1]" params="<TMPL_VAR NAME=EDIT_AUTHOR_NAME ESCAPE=HTML>"></a> 41 41 </li> 42 42 <TMPL_ELSE> branches/wheeljack/tmpl/cms/restore_upload_file.tmpl
r795 r960 4 4 <script type="text/javascript" src="<TMPL_VAR NAME=STATIC_URI>mt.js?v=<TMPL_VAR NAME=MT_VERSION ESCAPE=URL>"></script> 5 5 <script type="text/javascript"> 6 openDialog(this.form, 'dialog_restore_upload', 'files=<TMPL_VAR NAME=FILES>&assets=<TMPL_VAR NAME=ASSETS>'); 6 <!-- 7 openDialog(false, 'dialog_restore_upload', 'files=<TMPL_VAR NAME=FILES>&assets=<TMPL_VAR NAME=ASSETS>'); 8 //--> 7 9 </script>
