Changeset 906

Show
Ignore:
Timestamp:
12/14/06 01:49:05 (2 years ago)
Author:
lknowland
Message:

Added a fixDialog function to have the dialog-container div become fixed for when the user is inserting an image from the entry field(s) and has scrolled down the page, so as to not have the modal dialog either appear above and off the screen, or bounce the user back to top of the screen. The latter behavior may occur for users on browsers < IE7. Also added the separator graphic to go between the formatting icons and the adding assets icon(s).

Files:

Legend:

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

    r894 r906  
    322322} 
    323323 
     324function fixDialog() { 
     325    var el = getByID("dialog-container"); 
     326    el.style.position = 'fixed'; 
     327} 
     328 
    324329//--> 
    325330</script> 
     
    541546        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" />'); 
    542547        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&amp;edit_field=text&amp;blog_id=<TMPL_VAR NAME=BLOG_ID>&amp;dialog_view=1&amp;filter=class&amp;filter_val=image&amp;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" />'); 
     548        write('<img title="|" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/separator.gif" alt="|" width="7" height="19" />'); 
     549        write('<a href="javascript:void(0);" onclick="fixDialog(); openDialog(document.entry_form, \'list_assets\', \'_type=asset&amp;edit_field=text&amp;blog_id=<TMPL_VAR NAME=BLOG_ID>&amp;dialog_view=1&amp;filter=class&amp;filter_val=image&amp;return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')"><img title="<MT_TRANS phrase="Insert Image" escape="singlequotes">" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/add_image.gif" alt="<MT_TRANS phrase="Insert Image" escape="singlequotes">" width="26" height="19" /></a>'); 
    544550    } 
    545551} 
     
    584590        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" />'); 
    585591        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&amp;edit_field=text_more&amp;blog_id=<TMPL_VAR NAME=BLOG_ID>&amp;dialog_view=1&amp;filter=class&amp;filter_val=image&amp;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="|" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/separator.gif" alt="|" width="7" height="19" />'); 
     593        write('<a href="javascript:void(0);" onclick="fixDialog(); openDialog(document.entry_form, \'list_assets\', \'_type=asset&amp;edit_field=text&amp;blog_id=<TMPL_VAR NAME=BLOG_ID>&amp;dialog_view=1&amp;filter=class&amp;filter_val=image&amp;return_args=<TMPL_VAR NAME=RETURN_ARGS ESCAPE=URL>\')"><img title="<MT_TRANS phrase="Insert Image" escape="singlequotes">" src="<TMPL_VAR NAME=STATIC_URI>images/formatting-icons/add_image.gif" alt="<MT_TRANS phrase="Insert Image" escape="singlequotes">" width="26" height="19" /></a>'); 
    587594    } 
    588595}