diff --git a/scp/css/scp.css b/scp/css/scp.css index 946d662b55aed27e27c342c31e0de5eac9d2e0c4..3c7b83e12f3fc85001b1fd451c6fcc3e586e2752 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -30,7 +30,8 @@ a { .strike { text-decoration:line-through; color:red; } -.canned_attachments label, .uploads label { padding:3px; padding-right:10px; } +.canned_attachments label, .canned_attachments span .uploads label { padding:3px; padding-right:10px; } +.canned_attachments label { padding-right:3px; } #breadcrumbs { diff --git a/scp/js/scp.js b/scp/js/scp.js index f41617ce6f652b00da4b21c10e59a94db8cca5fc..8730685c0e2134d18d6a29e9f9f74cf66daaffa8 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -157,8 +157,9 @@ $(document).ready(function(){ if(canned.files && $('.canned_attachments',fObj).length) { $.each(canned.files,function(i, j) { if(!$('.canned_attachments #f'+j.id,fObj).length) { - var file='<label><input type="checkbox" name="cannedattachments[]" value="' + j.id+'" id="f'+j.id+'" checked="checked">'; - file+= '<a href="file.php?h=' + j.hash + j.key+ '">'+ j.name +'</a></label>'; + var file='<span><label><input type="checkbox" name="cannedattachments[]" value="' + j.id+'" id="f'+j.id+'" checked="checked">'; + file+= ' '+ j.name + '</label>'; + file+= ' (<a href="file.php?h=' + j.hash + j.key+ '">view</a>) </span>'; $('.canned_attachments', fObj).append(file); }