diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-13 20:04:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-13 20:04:14 +0000 |
commit | 19492226f7b2451524a1013a0ab979e6fdd30a7c (patch) | |
tree | 618d792f885d2839cd76c994f43e138c2af6dd1f /public | |
parent | 793cb1676450a5b3e723a452893c10be1cb0f1bd (diff) | |
download | redmine-19492226f7b2451524a1013a0ab979e6fdd30a7c.tar.gz redmine-19492226f7b2451524a1013a0ab979e6fdd30a7c.zip |
Ability to delete multiple attachments while updating an issue (#13072).
git-svn-id: http://svn.redmine.org/redmine/trunk@15650 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/attachments.js | 5 | ||||
-rw-r--r-- | public/stylesheets/application.css | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index f33524543..c5e6b962a 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -189,3 +189,8 @@ function setupFileDrop() { } $(document).ready(setupFileDrop); +$(document).ready(function(){ + $("input.deleted_attachment").change(function(){ + $(this).parents('.existing-attachment').toggleClass('deleted', $(this).is(":checked")); + }).change(); +}); diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 9816c6508..8c936bd33 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -363,7 +363,7 @@ div.square { overflow: hidden; width: .6em; height: .6em; } -.contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;} +.contextual {float:right; white-space: nowrap; line-height:1.4em;margin:5px 0px; padding-left: 10px; font-size:0.9em;} .contextual input, .contextual select {font-size:0.9em;} .message .contextual { margin-top: 0; } @@ -673,14 +673,16 @@ span.required {color: #bb0000;} .check_box_group.bool_cf {border:0; background:inherit;} .check_box_group.bool_cf label {display: inline;} -#attachments_fields input.description {margin-left:4px; width:340px;} -#attachments_fields span {display:block; white-space:nowrap;} -#attachments_fields input.filename {border:0; height:1.8em; width:250px; color:#555; background-color:inherit; background:url(../images/attachment.png) no-repeat 1px 50%; padding-left:18px;} +#attachments_fields input.description, #existing-attachments input.description {margin-left:4px; width:340px;} +#attachments_fields>span, #existing-attachments>span {display:block; white-space:nowrap;} +#attachments_fields input.filename, #existing-attachments .filename {border:0; width:250px; color:#555; background-color:inherit; background:url(../images/attachment.png) no-repeat 1px 50%; padding-left:18px;} +#attachments_fields input.filename {height:1.8em;} #attachments_fields .ajax-waiting input.filename {background:url(../images/hourglass.png) no-repeat 0px 50%;} #attachments_fields .ajax-loading input.filename {background:url(../images/loading.gif) no-repeat 0px 50%;} #attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; } a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%; width:1px; display:inline-block; padding-left:16px;} a.remove-upload:hover {text-decoration:none !important;} +.existing-attachment.deleted .filename {text-decoration:line-through; color:#999 !important;} div.fileover { background-color: lavender; } @@ -1137,8 +1139,6 @@ a.close-icon:hover {background-image:url('../images/close_hl.png');} background-position: 0% 50%; background-repeat: no-repeat; padding-left: 16px; -} -a.icon-only { display: inline-block; width: 0; height: 16px; @@ -1148,7 +1148,7 @@ a.icon-only { font-size: 8px; vertical-align: text-bottom; } -a.icon-only::after { +.icon-only::after { content: " "; } |