Skip to content

Commit

Permalink
Item2412: FoswikiImage plugin. Fix unable to select/insert an image w…
Browse files Browse the repository at this point in the history
…hen only one image attachment present; adjust image insert dialogue layout help text to be more compact; increase image insert dialogue window size, to avoid preview of image covering insert/cancel buttons

git-svn-id: http://svn.foswiki.org/branches/Release01x00@5628 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Nov 25, 2009
1 parent 654b2dc commit c041496
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
toolbar: false,
status: false,
url : url + '/image.htm',
width : 480,
height : 385,
width : 550,
height : 400,
movable : true,
inline : true
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</tr>
</table>
</td>
<td colspan="2">
<td rowspan="0" valign="top" colspan="2">
{#foswikiimage_dlg.img_url_help}
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ var FoswikiImageDialog = {
var select = document.getElementById("attachments_select");
for (var i = 0; i < atts.length; i++) {
for (var j = 0; j < ids.length; j++) {
lsts[j].options[i] =
/* +1 so as not to overwrite existing null option
* defined in the static HTML. Item2412 */
lsts[j].options[i+1] =
new Option(atts[i].name, atts[i].name);
}
}
Expand Down

0 comments on commit c041496

Please sign in to comment.