annotate media/js/tiny_mce/plugins/template/template.htm @ 265:1ba2c6bf6eb7

Closing #98. Animated GIFs were losing their transparency and animated properties when saved as avatars. Reworked the avatar save process to only run the avatar through PIL if it is too big. This preserves the original uploaded file if it is within the desired size settings. This may still mangle big animated gifs. If this becomes a problem, then maybe look into calling the PIL Image.resize() method directly. Moved the PIL image specific functions from bio.forms to a new module: core.image for better reusability in the future.
author Brian Neal <bgneal@gmail.com>
date Fri, 24 Sep 2010 02:12:09 +0000
parents 237710206167
children
rev   line source
bgneal@45 1 <html xmlns="http://www.w3.org/1999/xhtml">
bgneal@45 2 <head>
bgneal@45 3 <title>{#template_dlg.title}</title>
bgneal@45 4 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
bgneal@45 5 <script type="text/javascript" src="js/template.js"></script>
bgneal@45 6 <link href="css/template.css" rel="stylesheet" type="text/css" />
bgneal@45 7 </head>
bgneal@45 8 <body onresize="TemplateDialog.resize();">
bgneal@45 9 <form onsubmit="TemplateDialog.insert();return false;">
bgneal@45 10 <div id="frmbody">
bgneal@45 11 <div class="title">{#template_dlg.desc}</div>
bgneal@45 12 <div class="frmRow"><label for="tpath" title="{#template_dlg.select}">{#template_dlg.label}:</label>
bgneal@45 13 <select id="tpath" name="tpath" onchange="TemplateDialog.selectTemplate(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text);" class="mceFocus">
bgneal@45 14 <option value="">{#template_dlg.select}...</option>
bgneal@45 15 </select>
bgneal@45 16 <span id="warning"></span></div>
bgneal@45 17 <div class="frmRow"><label for="tdesc">{#template_dlg.desc_label}:</label>
bgneal@45 18 <span id="tmpldesc"></span></div>
bgneal@45 19 <fieldset>
bgneal@45 20 <legend>{#template_dlg.preview}</legend>
bgneal@45 21 <iframe id="templatesrc" name="templatesrc" src="blank.htm" width="690" height="400" frameborder="0"></iframe>
bgneal@45 22 </fieldset>
bgneal@45 23 </div>
bgneal@45 24
bgneal@45 25 <div class="mceActionPanel">
bgneal@183 26 <input type="submit" id="insert" name="insert" value="{#insert}" />
bgneal@183 27 <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
bgneal@45 28 </div>
bgneal@45 29 </form>
bgneal@45 30 </body>
bgneal@45 31 </html>