Changeset 438
- Timestamp:
- 12/19/05 12:35:43 (7 years ago)
- Location:
- trunk/plugins/InsertPicture
- Files:
-
- 3 modified
-
InsertPicture.php (modified) (8 diffs)
-
insert-picture.js (modified) (3 diffs)
-
lang/de.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/InsertPicture/InsertPicture.php
r419 r438 70 70 __dlg_translate("InsertPicture"); 71 71 __dlg_init(); 72 window.resizeTo( 470, 490);72 window.resizeTo(500, 490); 73 73 // Make sure the translated string appears in the drop down. (for gecko) 74 74 document.getElementById("f_align").selectedIndex = 1; … … 82 82 document.getElementById("f_vert").value = param["f_vert"]; 83 83 document.getElementById("f_horiz").value = param["f_horiz"]; 84 document.getElementById("f_height").value = param["f_height"]; 85 document.getElementById("f_width").value = param["f_width"]; 84 86 window.ipreview.location.replace(param.f_url); 85 87 } … … 149 151 } 150 152 153 var img = new Image(); 154 function imgWait() { 155 waiting = window.setInterval("imgIsLoaded()", 1000) 156 } 157 function imgIsLoaded() { 158 if(img.width > 0) { 159 window.clearInterval(waiting) 160 document.getElementById("f_width").value = img.width; 161 document.getElementById("f_height").value = img.height; 162 } 163 } 164 151 165 function CopyToURL(imgName) { 152 166 document.getElementById("f_url").value = imgName; 153 167 onPreview(); 168 img.src = imgName; 169 img.onLoad = imgWait() 154 170 } 155 171 … … 229 245 <div class="space"></div> 230 246 231 <div class="fl" >Alignment:</div>247 <div class="fl" style="width: 6em;">Alignment:</div> 232 248 <select size="1" name="align" id="f_align" 233 249 title="Positioning of this image"> … … 246 262 <p /> 247 263 248 <div class="fl" >Border thickness:</div>264 <div class="fl" style="width: 6em;">Border thickness:</div> 249 265 <input type="text" name="border" id="f_border" size="5" 250 266 title="Leave empty for no border" /> … … 254 270 </fieldset> 255 271 272 <fieldset style="float: left; margin-left: 5px;"> 273 <legend>Size</legend> 274 275 <div class="space"></div> 276 277 <div class="fl" style="width: 5em;">Width:</div> 278 <input type="text" name="width" id="f_width" size="5" title="Leave empty for not defined" /> 279 <p /> 280 281 <div class="fl" style="width: 5em;">Height:</div> 282 <input type="text" name="height" id="f_height" size="5" title="Leave empty for not defined" /> 283 <div class="space"></div> 284 285 </fieldset> 286 256 287 <fieldset style="float:right; margin-right: 5px;"> 257 288 <legend>Spacing</legend> … … 259 290 <div class="space"></div> 260 291 261 <div class="fr" >Horizontal:</div>292 <div class="fr" style="width: 5em;">Horizontal:</div> 262 293 <input type="text" name="horiz" id="f_horiz" size="5" 263 294 title="Horizontal padding" /> … … 265 296 <p /> 266 297 267 <div class="fr" >Vertical:</div>298 <div class="fr" style="width: 5em;">Vertical:</div> 268 299 <input type="text" name="vert" id="f_vert" size="5" 269 300 title="Vertical padding" /> -
trunk/plugins/InsertPicture/insert-picture.js
r419 r438 42 42 } 43 43 if (image) outparam = { 44 f_url : HTMLArea.is_ie ? image.src :image.getAttribute("src"),44 f_url : image.getAttribute("src"), 45 45 f_alt : image.alt, 46 46 f_border : image.border, … … 49 49 f_horiz : image.hspace, 50 50 f_width : image.width, 51 f_height : image.height51 f_height : image.height 52 52 }; 53 53 … … 55 55 + '?picturepath=' + InsertPicture.PicturePath; 56 56 57 Dialog(manager, function(param) { 57 Dialog(manager, function(param) { 58 58 if (!param) { // user must have pressed Cancel 59 59 return false; -
trunk/plugins/InsertPicture/lang/de.js
r383 r438 1 1 // LANG: "de", ENCODING: UTF-8 | ISO-8859-1 2 2 // Sponsored by http://www.schaffrath-neuemedien.de 3 // Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de Udo Schmal (gocher), <udo.schmal@t-online.de>3 // Author: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de 4 4 { 5 5 "The file you are uploading doesn't have the correct extension.": "Die hochgeladene Datei ist im falschen Format.",
